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

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

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

  • It has a test in it, which is that while, while something is true, do something, but I want to keep doing it.

    也有个测试在里面,也就是那个当,当一件事情为真的时候,做一些操作,但是我想一直进行判断。

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

  • If I come into this code, I'm going to check this branch first, if it's not true, ah, there's a return at the end of that branch. If it is true, I do that, and then I've got a second test. If it's true, return I return, otherwise a return.

    但是如果我们看看这里,如果我看这段程序,我会先检查这一部分,如果它是假的,啊,这部分分支结尾有一个。

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

  • All right, if this is purely a test of, if this is true do this otherwise I don't care, I don't need the ELSE clause in there to identify it. All right?

    好,如果这真是一个测验,用来测试如果是真的那么进行一些操作,否则的话我不在乎,那么我不需要ELSE语句,来进行声明了对不对?

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

  • So what's going to happen here? If I'm inside this FOR, OK, and I'm running around, if I ever hit a place where this test is true, I'm going to execute that return, return that return returns from the entire procedure. OK? So the return comes back from the procedure.

    那么这里发生了什么呢?,如果我是在这个for循环里面,我正在运行,如果我运行到test的值为真的地方,我就会执行,这个return将会返回整个程序的值,明白了吗?所以它将会从整个程序中返回值。

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

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

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

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