什么是谓词? [英] What is a predicate?

查看:358
本文介绍了什么是谓词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一名业余编码员,我缺少一些基本知识.在过去的几天里,我一直在阅读一些东西,谓词"一词不断出现.非常感谢您对此问题的解释.

Being a hobbyist coder, I'm lacking some fundamental knowledge. For the last couple days I've been reading some stuff and the word "predicate" keeps reappearing. I'd very much appreciate an explanation on the subject.

推荐答案

谓词的定义,可以在各种来源(例如

The definition of a predicate, which can be found online in various sources such as here, is:

一个逻辑表达式,其值为TRUE或FALSE,通常用于在代码中定向执行路径.

A logical expression which evaluates to TRUE or FALSE, normally to direct the execution path in code.

引用:软件测试.玛修·海顿(Mathew Hayden)

这篇关于什么是谓词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆