• Last time we checked the type and said if it is a float you're okay. If not, carry on.

    并且会告之是否是一个浮点数,如果不是继续循环

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

  • As soon as I detect with what we'll call a condition if I'm touching the edge I have to essentially spin around 180 degrees and then continue looping.

    一旦我检测到这种情况,当我碰到边界时,我需要转180°然后继续这一循环过程。

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

  • But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.

    但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。

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

  • Before I move on, I'm just going to put on the board another cycle, and I'm going to urge you to work through that on your own.

    在我继续之前,我要在黑板上,画另一个循环,我希望你们,能自己去推导它,它已经被详尽地推导过了。

    麻省理工公开课 - 热力学与动力学课程节选

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

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

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

  • Go ahead and define your loop.

    继续定义你的循环

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

  • I proceed to loop.

    继续循环

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

  • It expands. You change your constraints on your system, you heat it up some more, then you take the heat source away, and you put it back in contact with the atmosphere. And you cool it a little bit, change the constraints, cool it a little bit more, and heat, and you've got a closed cycle engine.

    让它与大气接触冷却,改变约束,使它继续冷却,然后又再次加热,这就是循环热机,我们以前也研究过,更复杂的机器。

    麻省理工公开课 - 热力学与动力学课程节选

  • Remember last time, we wrote this simple piece of code to print out even or odd. If, you know, x, 1 it was in fact, even or odd. So let me show you what a flow chart for that would look like, because I want to make a comparison point here.

    这就像这里有一些脚蹼一样,首先进行测试,然后把球这样放来让ANS加,然后回来继续测试,最终跳出循环然后打印答案。

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

  • 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为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。

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

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

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

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