• Over all possible inputs to this function, what's the fastest it runs? The fewest, so the minimum, if you like.

    哪个输入程序运行的最快?,用的时间最少?如果喜欢的话,这个方法看起来不错。

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

  • Suppose you could build a circuit with the following property: the input to this circuit would be any other circuit diagram.

    假设能用如下物品,建立起一个线路:,这个线路的输入设备,可以是任意一个其他线路的流程。

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

  • What you would do is type Frosted Flakes over here into that blank area, so you'd enter it here and then click.

    需要做的是在空白处输入玉米片,输完了点击这里

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • But the string, the sentence or the words that we're displaying on the screen, previously you clicked on a little white text field and typed it in, well now you're gonna do the same thing at the keyboard but you're gonna have to sandwich it in between double quotation marks.

    这些想输出到屏幕上的字符串啊,语句啊,单词啊,或者事先,在白色输入框中敲进去的内容,现在们需要用键盘做同样的事情,但是们要写在,双引号之间。

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

  • If you click on Edgar you can enter the name of any public company in the United States and then all of its filings are online and you can find out an incredible amount of information about companies.

    点击那个链接,可以输入,任何一间美国上市公司的名字,所有的资料都在网上,可以找到有关这间公司的,大量信息

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

  • Or maybe I could donate bone marrow and those stem cells could be given to other people in the same way that blood can be given to other people by matching and making sure that immunologically my cells were compatible with you; there's a lot of interest in that.

    或者我可以捐献骨髓,而那些干细胞,可以使用和输血同样的方法,通过配型来确认我的免疫细胞和你的匹配,从而把我的干细胞,输入,这里面有很多有趣的东西

    耶鲁公开课 - 生物医学工程探索课程节选

  • OK. I get the two values in, what do I need to do, well, you sort of know that, right?

    好,有了这两个输入值了,我接下来将要做的,知道对不对?

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

  • So it's a way of reminding you, I've got to be careful about the types of things that I put in.

    因此我这是在提醒,一定要对输入的东西的类型,多加注意。

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

  • If you can figure out why fails on three letters instead of 12, you'll be more than half way to solving the problem.

    如果能明白为什么程序,在输入三个字母的单词的时候没法运行,就已经解决了问题的一半了。

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

  • It then should take an argument or parameter if you want your function to take input.

    然后它必须携带一个参数或参量,如果想要你的函数获得一个输入

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

  • I need a contract that says, here's what I want in terms of things that you're going to take as input, to begin your part of the drama, here's what you're going to produce at the output, and the details of what they do inside are up to them.

    这些作家相互沟通进行工作呢?,我需要一封规格说明书,我需要一份合约,上面列出了我想要做的事,这些是要再开始时做的输入,这些是要的输出,细节工作就取决于它们了。

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

  • If you want to get some input from the user, my God I don't want to have to program it to low level zero and 1 just to get keys from the keyboard; please let there have been someone who does that for me and indeed there are an increasingly sophisticated options that you can pull off the shelf.

    如果想获得一些用户的输入数据,我的上帝,我可不希望在键盘上敲入0,1的低水平方式来编程;,希望有个人能帮我做这件事吧,但是现有的选择,也变得日益复杂了。

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

  • So you print out--you enter everything you've had for the day.

    输入这一天内摄入的所有食物

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • It is certainly possible, for example, that a quadratic algorithm could run faster than a linear algorithm. It depends on what the input is, it depends on, you know, what the particular cases are. So it is not the case that, on every input, a linear algorithm is always going to be better than a quadratic algorithm.

    一个二次平方级复杂度的算法,当然也是可能跑的比线性复杂度算法快的,这取决于,知道的,输入以及特定的案例,因此并不是对于每个输入,线性复杂度就一定会,比二次平方级复杂度的算法的表现要好,只是通常来说是这样的。

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

  • When we're just interacting with idol, with the interactive editor or sorry, interactive environment if you like, that's what you expect. What's happening is that we're typing in something, an expression it doesn't know how to deal. It's raising the exception, but is this simply bubbling up at the top level saying you've got a problem.

    就发生了其中之一是吧,当在交互数据处理或者是在交互编辑器,抱歉,任何喜欢的交互式环境中,可能会遇到这些,如果输入什么内容,譬如一个它不知道怎么处理的表达式,它就会报一个异常,但这是否是简单的,把遇到的问题冒到最顶层呢?

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

  • The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.

    格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。

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

  • Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.

    比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,不用知道它做了什么,只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。

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

  • If you go to the web just type in glycemic index, you can pull up chart after chart of high and low glycemic index foods, and sometimes you get surprised by what those foods are.

    如果在网上输入血糖指数,会得到一个又一个,关于食物血糖指数高低的图表,有时会被列表中的那些食物吓一跳

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • I sort of blocked it out with the circles, but then you can go put in two servings, and you put what time of day you had it and then the program will be able to do its work.

    我把它圈了出来,输入说是两份,之后输入进食的时间,系统随后就能运行分析

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • That's why your operating systems and your personal computers often crash for no apparent reason. Just because two things happen to, once in a while, occur at the same time.

    这就是为什么你的电脑或者操作系统,经常会毫无预兆的崩溃了,这是因为两件事情正好同时发生了,通常还有人工输入

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

  • You put some inputs in, it has a contract that says if you put the right kind of inputs in you'll get a specific output coming out, but you don't have to know what's inside of that box.

    可以将输入一些内容,它相当于一个条件合约,如果你的输入是正确的,就能得到特定的输出,但是不知道盒子里面有些什么。

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

  • So if your word game doesn't work when the words are 12 letters long, instead of continuing to debug 12 letter hands see if you can make it fail on a three letter hand.

    因此如果你的单词游戏当输入单词,有12个字母的时候没法运行了,看看输入三个字母的单词它,能不能正常运行吧。

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

  • For a couple of reasons. In some ways, this would be nicer, do expected cases, it's going to tell you on average how much you expect to take, but it tends to be hard to compute, because to compute that, you have to know a distribution on input.

    关注最快的情况,在某种意义上来说,因为一些原因这样想挺不错的,当我们处理一个给定的问题,计算平均时间的时候,是很难计算的,因为并不知道输入的分布情况,这些输入会是怎么样的呢?

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

  • You have to be ever so explicit as to what data type your actually passing in.

    必须很清楚,输入的参数是什么类型的。

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

  • STUDENT: So, how do you come to a conclusion as to which you should use then, if you can determine the size based on solution, or based on input, so how do you decide?

    学生:所以,怎样决定该用,哪个来算呢?现在如果可以选择是,基于解决方案的大小,还是基于输入的大小,应该怎样决定呢?

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

  • You could run through a little loop to say keep trying until you get one. But one of the ways I could deal with it is what's shown here.

    可以运行一个小循环来不断地做,直到得到一个输入,但应该做的是弄明白这里到底要干什么。

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

  • And what happens the moment I call swap, as I said earlier, you get a copy of the inputs.

    当我调用swap时会发生什么,之前说过的,得到一个输入

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

  • What I'm going to ask you to do is track what you're eating, and to go to a website that will allow you to enter all your eating, and then it will print out a dietary analysis of that.

    我希望们能记录每天吃的东西,然后到相关网站输入你的饮食记录,之后打印出饮食分析报告

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • That in many cases, I can gain efficiency if I'm willing to give up space. Having said that though, there may still be a problem, or there ought to be a problem that may be bugging you slightly, which is how do I guarantee that my hash function takes any input into exactly one spot in the storage space?

    普遍存在的增益和权衡,在许多的例子中,可以通过牺牲空间而得到效率方面的增加,话说回来,仍然存在一个问题,或者应该会有一个问题困扰着,就是我如何保证我的哈希函数能够准确将,任一输入映射到相应的唯一的存贮空间中去?

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

  • So, summarizing better, assert is something you put in to say to the user, make sure you're giving me input of this type, but I'm going to guarantee you the rest of the code works correctly. Exceptions and exception handlers are saying, here are the odd cases that I might see and here's what I'd like to do in those cases in order to try and be able to deal with them.

    所以更好的总结下,断言就是放在那里告诉用户,保证输入的是这种类型的,但我能保证剩下的代码运行正确,异常和异常处理做的事,这里有些我能预期的异常情况,并且这里有些情况,我能尝试处理。

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

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

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

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