• You try to design actually I'm going to come back to that in a second. It's like you're trying to use a hash function that spread things out pretty evenly. But the places you store into in those lists may have to themselves have a small list in there, and when you go to check something, you may have to do a linear search through the elements in that list.

    你尝试着去设计,实际上过会儿我会回头讲解这个问题,类似于你需要用一个哈希函数,非常平均的将物体分发出去,但是在列表中你数据,映射到的地方可能会有自己的一小段列表,当你回头查找数据的时候,你可能需要在那一小段列表中做线性查找。

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

  • Why don't we say the same $5 check is included but, in the letter, let's say something different?

    同样是5美元股利的支票,但在信中,我们换种方式来说

    耶鲁公开课 - 金融市场课程节选

  • That's certainly one way to do it, but for computers that's not necessarily the easiest way. So another way of solving it is to do something we already saw last time, which is basically, why not simply enumerate all possible examples and check them?

    将一个等式代入另一个等式,这当然是一种办法,但是对电脑来说这绝对不是一件简单的事,所以解决这个问题的办法,正如我们上一次看过的,非常基本?

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

  • Nowadays, if you go to outer space, you can check for yourself that if you throw something out, it just goes on forever without your intervention.

    现如今,如果你去了外太空,你可以向外抛个物体试试,如果你不打断它,它就会一直运动下去

    耶鲁公开课 - 基础物理课程节选

  • It's only copying the address that was returned by get string so even though conceptually is the name this program suggests, I really just want to make a copy so that maybe I can make one version of D-A-V-I-D or F-O-O all uppercase or all lowercase or I want to spell check, something.

    而只是复制GetSting返回的地址,虽然这个程序表示的名称,我只想做一个拷贝,以便我可以做一个D-A-V-I-D或者F-O-O的版本,大写的或者小写的,或者拼写检查之类的。

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

  • Now if you look at that list, there is actually something I didn't seem to check, which is, I said I wanted a float stored in hyp.

    看下上面的清单,实际上我还有一些东西忘了检查,也就是说hyp中存储的,应该是浮点数类型。

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

  • All right, we're-- well actually, I should say that better, we first check to see, is x 0 greater than or equal to zero, if it's not, then we come down here and we print something out, otherwise we run through a little loop to get the answer, and then we check it and we spit something out.

    然后我们运行一个小循环,好了,我们现在来看看,如果x≥0或者x<,我们看这儿,我们会输出一些内容,或者我们运行一个小循环来获取答案,然后我们检验一下,然后得到结果。

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

  • And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.

    因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。

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

  • The reason for pulling this out is, what you're going to see is, that in most languages, all right, Python comes built-in with something that will check your static, sorry, your syntax for you.

    讲这些的原因在于,你们将要看到的是,在绝大部分语言中,好的,Python中带着一些,会检查你的static的东西,抱歉,是你的语法。

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

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

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

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