go top 返回词典
• And as you might expect, I'm going to then try and see if I can convert that into a float.

正如你希望的我要试着把他们转化为浮点数,等一等。

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

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

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

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

• So what that means is the compiler is actually going to first "cast" so to speak 13 from whatever it is - to a float -- to a floating point value -- and then perform the division for us.

所以这里的意思是编译器将,做“计算“，譬如13这样一个浮点数,-到另一个浮点数-,然后为我们处理除法。

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

• I just want to float to the dining hall after-- " so much easier, so much less painful."

我只想下午时飘去餐厅-,更加容易，更少痛苦“

哈佛公开课 - 幸福课课程节选

• OK, says it says enter a float. I give it something that can be converted into a float, it says fine. I'm going to go back and run it again though. If I run it again, it says enter a float.

好了，看到他说输入一个浮点数,我输入它可以转换为浮点数的值,那没问题，我回过来再运行一遍,如果我再运行一遍。

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

• Then I'd be multiplying a float by 5, so that's a float times an int.

然后我们把这个浮点数乘以，那是浮点数乘以整型数。

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

• - And then I divide by an int -- that's okay because so long as you have a float involved at some point early on, you're okay.

然后我除以一个整型数-,那是可以的因为现在为止，我们在之前已经,引入了一个浮点数，你是对的。

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

• I need to have a float. I need to have another float here, it's giving me some information.

这儿还需要一个,它给了我这样的信息。

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

• Need to get the base in. Second thing I want to do, I need to get the height, so I'm going to input a value for the height, also as a float, a floating point.

也就是输入底的值，第二件我想要做的，事情就是得到三角形的高,因此我会输入一个值作为三角形的高，同样也是一个浮点数。

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

• So, a 32 bit of float gives you a bunch of precision.

2比特的浮点型数据精度更大。

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

• It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.

这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如，如果我想改变下,显示的信息的话，我不必去改变方法，我传个不同的参数就可以了。

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

• As you walk amid the buildings and trees, as you see your friends and classmates, allow these emotions to float through you, freely, lightly.

在你走在建筑物和树木之间时，在你看到朋友和同学时，让那些情绪流遍你的全身，自由地，轻盈地。

哈佛公开课 - 幸福课课程节选

• Whatever they are, whatever it is that your feeling, allow it to float through you. Naturally.

不论是怎样的情绪，不论感觉到什么，让它流过你的全身，自然地。

哈佛公开课 - 幸福课课程节选

• But if I say turn this into a float, ah it throws a value error exception.

它就会抛出一个值错误异常了，它会告诉我输入了一种错误的值。

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

• And that then let's me get to, basically, base this code. Having done that, height I simply call base with get float, I call height with get float, and do the rest of the work.

现在让我们看看这段代码，其实已经写好了，我简单的调用下，用来得到一个浮点数，再调用下，来得到另外一个浮点数，然后做剩下的工作就可以了。

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

• When you think about an int or a float or a dictionary or a list, you knew that there were functions that operated on them.

当你想到整型，浮点型，或者链表时,你知道可以用函数去处理他们,但是当你传递一个参数，例如链表。

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

\$firstVoiceSent
- 来自原声例句