• Now, this is not the nicest way to do it but it'll work. I can look at the type of the value of base and compare it to the type of an actual float and see, are they the same?

    这不是最好的办法但它确实有用,我可以得到底的的类型然后,一个真的浮点的类型比比,看他们是不是一样?

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

  • Initially, it's the beginning and the end of it.

    然后根据中目标的比较结果。

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

  • And actually, if I don't want to clobber, as we say, overwrite the value of my variable, ; I could declare another one and store the return value in Y; Y so now I have two ints in memory; X and Y, 3 one with two, one with three.

    实际上,如果你不想彻底清除,像我们说的,覆盖那个变量的,我可以申明另一个变量Y,并在Y中保存那个返回;,现在内存中有两个int,X,一个的为2,一个为。

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

  • Knowing that, I'm going to say, OK, how many pigs are there, well that's just how we're, however many I had total, minus that amount, and then I can see, how many legs does that give, and then I can check, that the number of legs that I would get for that solution, is it even equal to the number of legs I started with, ah! Interesting. A return.

    它将给我返回头的总,知道了这些之后我可以说好了,有多少猪呢,无论有多少组鸡的目,我只要用总减去那个,之后我就可以知道一共有多少条腿,然后再把这个题目中的腿相比较,看它是否等于一开始的腿,啊!真有趣,有一个返回

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

  • 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 it treats it as a string, it's simply getting me back 52*7 the value of that string, 52 times 7, rather than the value of it.

    这让Python把它当做字符串来对待,他返回给我了,一个字符串的,而不是这个

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

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

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

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