• If my code is correct, what should the average price be, after say, 100 days, if there's no bias. Pardon?

    如果我的代码没写错的话,如果没有偏向值那平均价格会是多少呢,如果没有偏向值,请说?

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

  • So you know from algebra I can't actually solve this. There may be multiple solutions to this. What would I have to do to change my code? And the answer is fortunately not a lot.

    我解不出来方程,可能会有多组答案,我需要怎样修改我的代码呢?,很幸运的,答案是不用修改很多。

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

  • I keep seeing addition and I keep just copying my code, copying my code.

    我总是看到加法,我一直复制我的代码,复制代码。

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

  • Important lesson, so that there would be some predictability in the results and I would have some, if you will, smoke test for knowing whether or not I was getting, my code seemed to be working.

    这很重要,因为这样我就可以预测,结果会是多少了,如果你愿意,我们可以做烟气试验,来看我的代码是否工作正常。

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

  • Right now, what my code is doing is, it's printing them up for me, which is useful.

    它的所有的除数,现在,我的代码要做的就是。

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

  • This also, by the way, in some sense, gives me the beginnings of my comments for what the structure of my code is going to be.

    顺便说一句,在某种意义上这也是我,对于我的代码结构的,讲解的开始。

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

  • Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.

    换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。

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

  • So here's my code here.

    所以这里是我的代码。

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

  • 00 Now I say while i is less than or equal to 100, I write my code, I sleep for a second.

    现在我指明当i小于等于,我写下我的代码,我休眠一分钟。

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

  • Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.

    现在我要把这段代码,复制到,大文件中的各个部分。

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

  • I want the function, which is a little tool, a line of code I can include in my own programs and generally those tools live in sections two or three of the manual.

    我想要一个函数,那是一个小工具,在我程序中可以包含的一行代码,通常这些工具在手册的第二节,或第三节。

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

  • Which is a way of reminding you that I need to think as I write the code about what are my expectations from the input, and how might I enforce them.

    通过这个我在提醒大家,在写代码的时候,要搞清楚对输入的期望,并思考下如何执行这些期望。

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

  • I'm going to use my own special program that will color code things for me in class, but the idea is the same; it's a text editor.

    我将用我自己专门的程序,那个会分类为我标出代码的颜色,但是那个思想是一样的,这是一个文本编辑器。

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

  • And I've put it in my debugging code.

    调试的代码中去,然后运行看看结果。

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

  • I've certainly written code that has this problem, I've tried to use my own code that has this problem, and good to us, right, good hygiene, I'm going to use that word again here, of getting into the habit of writing defensive code up front, it's part of that collection of things that you ought to do is a great thing to do.

    我举手了吧?,我当然写过犯这种错误的程序了,我也尝试过应用含有这种错误的代码,不错,好的卫生,我还是要用这个词,对我们有帮助,养成写防卫性,代码的好习惯,是你应该做的,一系列事情之一,也是我们日后要做的主要的事情。

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

  • I can either look at my flow chart, or I can look at the code. If I look at the flow chart, it says, I'm at this point. Look at ANS squared. Is it less than or equal to-- sorry, first of all, 0 ANS squared is 0, is it less than or equal to x, yes.

    我可以看流程图也可以看我的代码,如果我看流程图的话,流程图这么说的,在这一点,看看ANS的平方,看是不是小于等于-对不起,首先,ANS的平方是。

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

  • So that is a flag that tells the compiler that I want to use or link into my own program code that someone else wrote that lives somewhere else on the system whose moniker is CS50.

    所以那是一个标记,用来告诉编译器我想使用,或连接我自己的程序代码到一个叫做CS50的系统中的程序,可能其他人在那个系统写了这些程序。

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

  • Which makes sense if you think of my code.

    哦是的,没变化,如果你看看我的代码的话。

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

  • But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.

    就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。

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

  • Right? If that was the case in that code, then my complexity is no longer log, because I need linear access for each time I've got to go to the list, and it's going to Lisp be much worse than that.

    这里的复杂度不再是对数的了,因为每次在列表中,查找需要线性访问,可能还要糟糕,其实,有些编程语言,如。

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

  • I will tell you that a good programmer, at least in my mind, may actually go back and modify the pseudo code as they realize they're missing things, but it's easier to do that when you're looking at a simple set of steps, than when you're in the middle of a pile of code.

    至少我认为是这样的,如果他们发现遗漏了,一些步骤的话会,回过头去修改伪代码,但这当你面对一些大致的步骤时,这个过程就会比,面对一堆代码要简单的多。

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

  • And what it's saying semantically is, using that variable as my placeholder, have it walk through this collection, starting at the first thing, execute that code, then the next thing, execute that code, and so on.

    它的语义意思就是,把这个变量应用为我的占位符,用它来遍历这个集合,从第一个元素开始,执行代码,然后下一个元素,再执行代码。

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

  • So my challenge to you, and I know Professor Guttag can do this, my challenge to you is, a year from now, come back and look at code you wrote here.

    因此我这里有个具有挑战性的任务,我知道Guttag也可能会说这个任务,我的这个任务就是,一年以后,回头来看,你之前写过的代码。

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

  • SRC back One is called SRC for Source and one is called SRC.back which was my backup of today's source code in case I screw up.

    其中一个叫SRC,用来装源代码,另一个叫,用来备份源代码,以防我搞砸了。

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

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

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

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