• It is going to give me back a tuple a collection of two things, and so check out the syntax.

    它将给我返回一个数组或者系列的一对值,然后检查一下语法。

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

  • I can give two names, which will get bound to the two parts of that return tuple.

    我可以给设两个变量,返回的一对值会被赋给这两个变量。

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

  • Odds are when this function called gets a string from the user by expecting them to manipulate their keyboard - with their fingers, I need to-- initiatively I'm gonna get back a sentence or a word or a phrase or something.

    调用GetString获取的信息也有可能,是通过键盘敲进来的,东西-,它将返回句子啊,单词啊,或词组啊等等一些信息。

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

  • Notice by the way, there's that nice speck true going on saying put a string here.

    在这里说放一个字符串在这儿有点小问题,如果是回文的话那么它将返回真值。

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

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

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

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

  • All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.

    执行完返回值语句,但是在这里我赋值给,所以当我看test的值的时候就是返回的值。

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

  • So what's going to happen here? If I'm inside this FOR, OK, and I'm running around, if I ever hit a place where this test is true, I'm going to execute that return, return that return returns from the entire procedure. OK? So the return comes back from the procedure.

    那么这里发生了什么呢?,如果我是在这个for循环里面,我正在运行,如果我运行到test的值为真的地方,我就会执行,这个return返回整个程序的值,明白了吗?所以它将会从整个程序中返回值。

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

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

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

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