• Why? Because that block identifies a set of things that I'm going to do if the test is true.

    什么呢?这是因这一块指令,指定了一系列的要进行的操作,如果测试为真的话。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I'm so happy for her, it's totally her year.

    她高兴,今年她很走运。

    演技也是练出来的 - SpeakingMax英语口语达人

  • It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.

    我就会返回答案为真,否则的话我得判断它。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If you want to make sure both conditions are true and they both have to be true for any code to be executed, use ampersand ampersand.

    如果你想保证两个条件都成立,或者它们两个都必须为真值,才能执行一些代码,那就使用“&&“

    哈佛公开课 - 计算机科学课程节选

  • It's got to be that every single one of them is so.

    那么其中的每一个都必须为真

    耶鲁公开课 - 死亡课程节选

  • If this theory you might say of sort of cataclysmic change is true we cannot rule out the possibility that a constitution like ours or even identical to ours existed at some point in the ancient past in the far distant past that Aristotle knew about.

    你们可能认,如果这个理论,即剧烈变革的理论为真,我们就不能排除,像美国宪法,或相同于美国之其它现存宪法,早在远古。

    耶鲁公开课 - 政治哲学导论课程节选

  • That was the kind of thing you saw. Asserts said here are some conditions to test. If they're true, I'm going to let the rest of the code run.

    这就是你看到的,断言是一些测试条件,如果他们为真

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If something is true do this, else something is true, do that.

    如果某些条件是的,就做这件事,否则另外一些条件为真的话就做另外一件事。

    哈佛公开课 - 计算机科学课程节选

  • Well, doesn't want us to set mo to true here.

    好了,这里好像不想让我们把它设为真

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Otherwise the test is always going to be true, we're going to go off here, but this would loop forever if I did that.

    否则测试结果就会一直为真,我们需要离开这个测试,否则就会一直执行循环。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.

    我打算跟踪一个小的变量称,初始值为真,只要它是的,算法就会继续,但是在循环里,我打算把他设假,除非交换发生,就把它设为真

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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?

    但下次要思考的关键是,那三个前提是否的确全部为真,或许一个或几个假呢

    耶鲁公开课 - 死亡课程节选

  • And they've got to all be true.

    而且它们要全部为真

    耶鲁公开课 - 死亡课程节选

  • All right, it's so if I looked at it, sorry, IF x is less than y, THEN check to see IF x is less than z, and if that's true, print out x is the smallest.

    好,代码是这样的,对不起,是不是x比y小,然后去看看是不是x比z小,如果都为真的话,显示x最小值。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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为真

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And if the test is true, it will change the value of this program counter to point to some other place in the memory, some other point in that sequence of instructions, and you'll keep processing.

    如果测试结果为真,它会改变程序计数器的结果去,指向记忆存储器里的其他地方,指令序列里的其他地方,然后你会继续这个过程。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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.

    我能不能对两个条件同时判断,来看看它们是不是都为真?,这些概念可能对你们中一些人有点新颖,那么就考虑一个典型网站。

    哈佛公开课 - 计算机科学课程节选

  • So here I've hardcoded the word true which is actually deliberately inducing what we called what last week.

    所以在这里我们可以把条件写死,也就是我们上周提到过的,故意让循环条件,一直为真

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定