And here, I'm going to suggest we've seen numbers, we've seen strings, and I'm going to add Booleans here as well.
我要提醒下大家我们学习过数字数据了,学习过字符串了,今天还要学习布尔类型,这是当我们谈到条件的时候。
I live in an area called Cobble Hill, which was an Italian neighborhood at one point, and it changed.
我住在一个叫科布尔山的地方,那儿曾经是个意大利住宅区,后来它变了。
Harold Bloom has written, and I think he's absolutely right, that Milton begins Paradise Lost with a powerful defense against lateness.
哈罗德·布卢姆写道,我认为他说得对极了,他说弥尔顿,在《失乐园》的开头对这些“晚“进行了有力的辩护。
So even though we think of conditions as being Boolean values true or false, really underneath the hood true means anything other than zero.
即使我们考虑,布尔值的真假条件,在底层“真“表示非零。
Strange to say, too, that night we crossed the ferry with Bull Lee a girl committed suicide off the deck either just before or just after us. We saw it in the paper the next day.
还有件很奇怪的事儿,我们和布尔·李渡过渡口的那天晚上,一个姑娘从船上跳水自杀了,大概不是在我们渡河之前,就是以后,第二天我们从报纸上看到了这个消息。
Kelly Brownell is going to talk--is head of the Rudd Center, focuses on obesity, eating disorders, dieting, and he'll talk about the psychology of food.
凯莉·布洛耐尔,是路德研究中心的领导者,主要研究肥胖症,进食紊乱和节食方面的问题,他会为大家讲述饮食的心理学
PROFESSOR2: So it's not really a Boolean-valued function.
教授2:因此这并不是一个,真正的布尔值的函数。
but there's Cobble Hill, Carroll Gardens, Park Slope which are very similar.
但科布尔山、卡罗尔花园、斜坡公园都很相似。
And now, if I'm touching mouse pointer, we saw that Boolean expression before, play sound meow, wait a couple of seconds, and then just keep checking.
现在,如果我们碰下鼠标指针,起初我们看到一个布尔表达式,播放猫叫的声音,等几秒钟,然后如刚才那样做检测。
Scratch This Boolean expression allows you to say to scratch if you are touching the mouse pointer, the little arrow, do something. How do we do something?
布尔表达式允许你告诉,当你触碰到鼠标指针,也就是小箭头,程序就相应地做一些事情?
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.
它有两个输入,一个是左边的作用物,一个是右边的作用物,然后返回一个布尔值-,或者更确切地说,返回一个从左到右的值。
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语言里,没有布尔数据类型。
That's what's called a Boolean expression named after literally a man named Boole.
这就是以Boolean这个人,的名字命名的布尔表达式。
Scratch The syntax actually looks reminiscent to Scratch, where you have a puzzle piece reminiscent of this shape, but you have to say "if" followed by a space, followed by in parenthesis, the Boolean expression that you want to check -- more on those in a moment.
这个语法看起来使人想起,那里有一个这种形状的程序块,但是你必须说明“if“后面跟着一个空格,跟着一个括号,一个你需要核对的布尔表达式,-还有更多的。
Can't use them on Booleans, they have a different set of things. They do things like AND, and OR. And of course there's a bunch of other ones in there, I'm not going to put them all up, but we're building up a little collection, if you like, of those operations.
这个方面的东西,它们不能被应用于布尔类型,布尔类型有其他的一系列操作,比如AND,和OR之类的,当然还有很多其他的,我不会把他们一一列出来,但是我们会学习这些操作的一部分。
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或者。
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.
我们有一个循环,通过一个条件和一个布尔值来判断,是否触到了边缘,还有一些语句,让它回头并咆哮。
应用推荐