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

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

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

  • So what would I want to do? I'd like to somehow walk down each of the digits one at a time and add them up. Ah, that's a looping mechanism, right? I need to have some way of walking through them.

    去取这个的,每个字然后把他们加起来,啊,这是个循环机制对不对?,我得找到一个遍历它们的方法,一种简单的方法可能。

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

  • The one thing you want to keep in mind though is that Hertz does not actually mean inverse seconds, it means cycles per second. So, if you're talking about a car going so many meters per second, you can't say it's going meter Hertz, you have to say meters per second.

    写成5每秒,或5赫兹,你们要记住的是赫兹,并不等于秒的倒,它是每秒的循环,如果你们说,一辆车一秒可以走多少米,你不能说它走了米赫兹。

    麻省理工公开课 - 化学原理课程节选

  • What is counting my way through this process?

    什么东西在着我循环这个过程多少次了?

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

  • But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.

    加上得到的这个的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个加到一个上面去,然后用和对这个进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示字的总和,如果我运行,这个程序的话,我会得到我期待的结果。

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

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

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

  • And if I were to use that again, I'd just put it on your handout, I could go back and rewrite that thing that I had previously for finding the square roots of the perfect squares, just using the FOR loop. OK. What I want to do, though, is go on to-- or, sorry, go back to - my divisor example.

    它可以是任意的集合,如果我又要去用这个方法的话,我会把它放在你们的课堂手册上的,我可以回过头去用FOR循环,重新写我们那个求平方的程序,我想要做的是,是继续-哦抱歉,回到-我的除那个例子。

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

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

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

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