Last time we checked the type and said if it is a float you're okay. If not, carry on.
并且会告之是否是一个浮点数,如果不是继续循环。
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 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循环,重新写我们那个求平方数的程序,我想要做的是,是继续-哦抱歉,回到-我的除数那个例子。
应用推荐