True or false? Potatoes are root vegetables.
VOA: special.2009.03.10
So if you wanna do something conditionally, you generally needs to ask the question, is the following true or false.
假如想在一定条件下做一件事情,你需要判断下这个条件,来看看条件是真还是假。
So even though we think of conditions as being Boolean values true or false, really underneath the hood true means anything other than zero.
即使我们考虑,布尔值的真假条件,在底层“真“表示非零。
More generally, Chomsky suggests that the law of effect when applied to humans is either trivially true, trivially or uninterestingly true, or scientifically robust and obviously false.
更一般的来讲,乔姆斯基认为应用在人类身上的效果律,要么是无效且毫无意义的正确假说,要么就是稳定且明显的错误假说。
But the point to think about for next time is just, is it really true that all three of the premises are true, or might one or more of them be false?
但下次要思考的关键是,那三个前提是否的确全部为真,或许一个或几个为假呢
Now, less than is just, if you haven't used it before, it's just the operator you'd expect, it's comparing two things and it's going to return either true or false depending on whether the first argument is false less than the second argument.
现在,小于这个符号是,如果你之前没用过它的话,它就是你期望的那个运算符,它会比较两个独享,然后基于第一个参数是不是,小于第二个参数,返回true或者。
Yes or no. That can give you a true or false, a one or a zero answer. What about this?
是或者否,它告诉你真假,1,或,0,这个怎么样?
There's this notion of a Boolean value named after Mr. Bool, which is just a notion of true or false.
布尔值的概念是在布尔先生之后命名的,它是一个正确或错误的概念。
And this puzzle piece here colored in blue because it's a Boolean expression is just something that--whose answer is either a yes or no, 0 true or false, one or zero.
这个拼图染成蓝色,因为它是布尔表达式,它的结果只可能是肯定或否定,对或错,1或者。
This is just a little inelegant and so one of the things we'll introduce early on is this idea of abstraction or design whereby if you wanna represent the ideas of 0 and 1, true or false, well, let's give them a synonym like true or false.
这么说有点粗野,我要接着讲的是这种抽象的思想,或者用这个来描绘设计出,真和假的思想,我们可以给真假各指定一个同义词。
There is no such thing as true or false.
也就没有真或假。
This is a true or false value.
这是一个正确或错误的值。
Now, are they true or are they false?
这些假说究竟是对还是错呢?
It's a little more readable because I'm using a Boolean value that tells me, the programmer, this is true or this is false.
它更具有可读性一点,因为我使用了一个bool值,它告诉我或程序员,这是正确的或这是错误的。
So we talked about Mr. Bool briefly last week in this idea of true or false, but in C, you don't have a Boolean data type.
我们上周简短地谈论过Bool先生的,真假的逻辑思想,但是在C语言里,没有布尔数据类型。
应用推荐