So even though we think of conditions as being Boolean values true or false, really underneath the hood true means anything other than zero.
即使我们考虑,布尔值的真假条件,在底层“真“表示非零。
There's this notion of a Boolean value named after Mr. Bool, which is just a notion of true or false.
布尔值的概念是在布尔先生之后命名的,它是一个正确或错误的概念。
PROFESSOR2: So it's not really a Boolean-valued function.
教授2:因此这并不是一个,真正的布尔值的函数。
Something that takes two inputs, a left operant - and a right operant and it just returns a Boolean value is-- or rather it returns a left to right value.
它有两个输入,一个是左边的作用物,一个是右边的作用物,然后返回一个布尔值-,或者更确切地说,返回一个从左到右的值。
You've got a loop, you've got a condition and a boolean to check if he's touching the edge, and some statements to tell him to shout or to actually turn around.
我们有一个循环,通过一个条件和一个布尔值来判断,是否触到了边缘,还有一些语句,让它回头并咆哮。
应用推荐