So if you wanna do something conditionally, you generally needs to ask the question, is the following true or false.
假如想在一定条件下做一件事情,你需要判断下这个条件,来看看条件是真还是假。
And your friend is saying, "Oh, I'm so glad to be here." "This is so beautiful, so glorious."
你的朋友说,“哦,我真高兴能来这儿。”“这里这么漂亮,这么气势恢弘。”
Do I have two yes answers if you wanna check two conditions at once? You know, this might seem to be a bit of a new context for some of you but consider a typical website.
我能不能对两个条件同时判断,来看看它们是不是都为真?,这些概念可能对你们中一些人有点新颖,那么就考虑一个典型网站。
If you get oil, crush the oil from the olives that come down from the trees, that's a nasty smell that it has.
如果想要得到橄榄油,就要从橄榄树上摘下橄榄来榨油,它的味道可真不好闻
I'd like to go by climbing a birch tree, And climb black branches up a snow-white trunk toward heaven, till the tree could bear no more, But dipped its top and set me down again.
我真想去爬白桦树,沿着雪白的树干,爬上乌黑的树枝,爬向那天心,直到树身再支撑不住,树梢碰着地,把我放下来。
I should have picked on some of the SOM people by the way.
我真应该找一个管理学院的人来回答
And we have to start to look at other experiments to try to get at what is it about physical attractiveness ? that makes people want to pursue the relationship?
我们必须看看其他的实验,来揭开外表吸引力的真面纱,了解为什么它能促使男女双方继续交往?
Maurice Chevalier was a crooner, he was a singer, he was--if your parents knew about France, he was the person that your grandparents even had heard about, and he was somebody from a poor part of Paris, and he was from Menilmontant, and he had this straw hat and he sung tunes-- "Very good my boys," And all of this stuff.
莫里斯·舍瓦利埃是个低吟男歌手,是个歌手,他是,要是你家长了解法国的话,他是那种你的爷爷都可能听说过的人,他是巴黎一个贫穷的地方的人,是从梅尼尔蒙当来的,他带着个草帽唱曲子,"小伙子们真不错",所有这些东西
I'm doing a test there to say, x if the string x is less than the value of b, and x does not appear before b as strings, then I was going to do, oh, a couple of things, because they're at the same block level.
我正在做一个测试来看看,字符串,是不是小于b的值,而且x不在b之前作为字符串出现,如果是真的话我就要做,一系列的操作,因为他们是在同一个块等级上。
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.
这么说有点粗野,我要接着讲的是这种抽象的思想,或者用这个来描绘设计出,真和假的思想,我们可以给真假各指定一个同义词。
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
So let's go back, and let's set mo to true here.
我们回过头来,让mo为真。
应用推荐