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

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

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

  • So for example I defined p, remember back over here, as a Cartesian point, but I can actually ask for its polar form.

    我可以要求返回它的极坐标形式,这里对我是可访问的,好,这很棒,请再记另外一个为什么。

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

  • Well, I'm going to get back, let's just draw a bigger square than usual that's roughly four times the size.

    嗯,返回的是,我画一个更大的方形,大致上是4倍的大小。

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

  • The Republic belongs to that period of Plato's work after his return to Athens, after the execution of Socrates.

    理想国》即是柏拉图,在返回雅典后的作品之一,也就是在苏格拉底被处决之后。

    耶鲁公开课 - 政治哲学导论课程节选

  • s1 So for the fourth period, now we're into the 4 s 1 3d for potassium here. And what we notice when we get to the third element in 4s2 and the fourth period is 3d that we go 4 s 2 and then we're back to the 3 d's.

    对于第四周期到现在我们来到钾的1,然后我们返回到,我们注意到当我们看到第三个元素,第四周期我们来到,然后我们返回到。

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

  • Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.

    正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回

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

  • Let's test it in all possible combinations of x and y and see if we get the right answer.

    来测试并看看,返回的结果正确不正确。

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

  • false It's going to return true if it's a PAIL-indrome and false if it's a PAL-indrome. And it says true. Now maybe you're bugged by this.

    如果不是会问的话则是,返回的是真值,那么你可能会觉得这个很烦。

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

  • 4 So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.

    所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。

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

  • So you're implementing this black box, and if its purpose in life is to actually return a value, you have to tell the compiler what kind of value to expect, and this is going to have ripple effects.

    你在实现这个黑盒子,如果它的目的是,返回一个值,你必须告诉编译器你期望的是什么类型的值,这个将是一个连锁反应。

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

  • So what I wanted to do is loop back, at least with a couple of things that we see recurring and very understandably so, but let's try to clear up a couple of frequently occurring issues.

    所以我想要做的是回环,至少用两三个,我们看到的东西返回,并且可以理解地,让我们试着处理几个,频繁发生的事情。

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

  • Because it says, your program will still give you a value, but it may not be what you intended, and you can't always tell, and that may propagate it's way down through a whole bunch of other computations before it causes some catastrophic failure.

    因为这意味着,你的程序依然会返回一个值,但是这个值可能不是你想要的,你可能还分辨不出来,而且这种情况会传播,结果会沿着正果计算过程传播下去,直到产生一个灾难性的错误。

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

  • Then if the weight of i is less than the available weight, I can return the value of i.

    然后如果i的重量,小于剩下的重量,我将返回i的价值。

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

  • Do one comparison and return one of two possible orders on it, but I need to decide that.

    虽然可以做一次比较,然后返回两个可能的顺序中的一个为结果,但是这需要我来做决定。

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

  • So that's the second thing I've just highlighted here, is that I now have the ability to check whether it does the right thing.

    你知道的,一个虚数,但是返回虚数就没有什么价值了,那么这是我想要强调的第二件事情。

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

  • You know when you add 2 polar forms, you add the radii together, you don't add the angles together, you need to do it in Cartesian form.

    表示形式的不同理解,返回给你了不同的值,这也就带来了一系列的问题,第二个问题是。

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

  • So, generally speaking when a function returns the memory that it used gets overwritten or disappears.

    那么,通常来说,当一个函数返回的内存,被覆盖了或者消失了。

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

  • At least you maybe finding that and if not when you look back at the code you then have written you'll realize that in fact it just requires a few lines of code.

    至少你会发现这一点,不然的话,在你写完代码,返回去,看的时候你会意识到,实际上它只需要几行代码。

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

  • That is to say, I'm going to go back to a node I've already visited.

    也就是说我将要,返回我访问过的节点。

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

  • So when I said earlier that as soon as swap returns, all of the memory allocated for swap is now useless.

    我前面指明的,一旦swap返回,所有为swap分配的内存都是无用的了。

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

  • But it's a valuable thing. It says, in each case, I return some useful value from this procedure.

    但是这就是变量,是在每个例子中,我从这个程序中返回了一些有用的值。

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

  • But I got a couple of other of these strange looking things in there with underbars to them.

    我可以在这片代码中看到这些,然后我需要一些可以给我,返回这些信息的东西,但是这里还有一些看起来。

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

  • I can use that to return values, which I can then use elsewhere, which I did-- and if I just come back and highlight this-- inside of that computation.

    我可以用它来返回值,然后我可以在别的地方使用这些返回值,正是我做的--如果我回过头来,在高亮一下这个--在这部分计算内部。

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

  • I don't have to go read what it printed out in the screen. This has returned a value that I can use. Because I could do a test to say, is this a return value? If it's not, I'll do something else with it. So the binding is still there, it simply doesn't print it out.

    我不想读到屏幕中打印出来的这行字,程序返回过一个我能够使用的值,因为我可以做个小测试,来说明这是否是返回的值,如果不是,我可以做一些其它的事,而这个绑定依然在这儿,没有打印任何东西。

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

  • I'm going to print here the list if we go into it, and print of the when we're done and then just return that.

    注意接下我来我要做的事,运行到这里时会打印列表,并且当处理完成后会打印返回的列表。

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

  • So I can similarly do this, which is going to look strange because it's going to give me the same value back out, but it actually did a slightly different thing.

    我也可以通过类似的手段来达到这个目的,这看起来很奇怪,但是会返回相同的值,但是它的实现真的有点不同。

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

  • p1 But if I say, are p 1 and p 2 the same point, it says yes.

    和p2是不是同一个点,It,says,no。,返回的结果是肯定的,在这里我有个要强调的点,这个例子里发生的是。

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

  • And it probably, I think we can deduce, returns the right answer here.

    然后程序也可能,我认为我们可以推断,程序会返回正确的答案。

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

  • And then I'll create this function, d1 this distribution d 1, which will, whenever I call it, give me a random, a uniformly selected value between minus and plus volatility.

    然后我会创建这个函数,这个概率分布,每次我调用这个函数的时候,他会给我返回一个随机的,按照均匀分布,从正负浮动值之间选择的值。

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

  • Which is sort of the question we'd immediately like to ask. Instead, I asked why did it produce the result it did. So I'm not asking myself what's wrong? Or how could I make it right?

    其实这个问题我们马上就要问,我问了为什么它会返回这样的结果,因此我并没有去在意哪儿错了,或者我该怎么改正它,我在意的是它?

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

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

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

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