• I'm gonna keep as part of each stock, it's history of prices, which we can initialize, well, I've initialized it as empty, but that's probably the wrong thing, right?

    我会把股票的历史价格,作为每只股票的一部分,我们可以先对它的历史价格进行赋,好了,我先给它赋了空,但是这样做可能不对,是吗?

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

  • Take the difference of the two velocities and divide by the difference of the two times, and you've got the acceleration.

    求出速度的差,除以时间的差,这样就能得到加速度

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

  • I know it looks like a simple and silly little example, but at the moment, I still have the ability to go in and change the values of the parameters by that little definition.

    很简单的有点儿蠢的例子,但是现在,我还是可以通过,一个简单的定义声明,来进去改变参数的,这样就没意义了,这是因为我并没有用一些。

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

  • And we can go through and calculate the value of this quantity in parenthesis. And, when we do so, we get the value 2.18 times 10 to the minus 18 joules.

    我们能进行计算这些,如果我们这样做,我们能算出是,2。18,乘以10,的负18焦耳。

    麻省理工公开课 - 固态化学导论课程节选

  • So I can now proceed to print it, change it, manipulate it, or what now.

    这样我们就可以打印出来,或改变其,对它进行操作,等等。

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

  • You have to make those calculations and there are errors in that, but you come away with a population estimate of things like that.

    你必须把这些都算进去,因为其中存在误差,但这样你会得出,整体人群摄取量的估算

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

  • And so our tabulated values, they'll all work.

    这样,我们的表格中的

    麻省理工公开课 - 热力学与动力学课程节选

  • Then to get the monthly payment, you take the square bracketed thing and you divide by the mortgage balance and that's the monthly payment; that's how it's calculated.

    如果要算每月偿还额,你用贷款余额,除以这个方括号的,这样就得出每月偿还额,这就是每月偿还额的计算方法

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

  • So I differentiated this object, this is my first derivative and I set it equal to 0 Now in a second I'm going to work with that, but I want to make sure i'm going to find a maximum and not a minimum, so how do I make sure I'm finding a maximum and not a minimum?

    这样我就对它求出导数了,这是一阶导数,令它等于0,一会我们就要计算了,但我先确定一下是最大还是最小,我怎么确定是最大还是最小

    耶鲁公开课 - 博弈论课程节选

  • We need to have conditions internally that are relatively constant in terms of temperature, and pH, and chemical composition in order for us to thrive.

    我们需要体内的环境参数保持相对稳定,这些环境参数包括,温度,pH,以及化学组成,这样人才能茁壮成长

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

  • I'd really like to have that modularity that says, I'm only going to get access to the values, not by calling their names, but by calling some specific method to get access to their names.

    这样我们就丢掉了代码的模块化,我很希望代码有这样的模块化:,我访问变量的,不是通过直接调用它们的名字,而是通过调用某个可以,访问这些变量名的方法来访问。

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

  • That code says the following: the IF says, I've got an expression, I'm going to evaluate it.

    代码的含义是这样的:,我有一个表达式,我会去对这个表达式求

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

  • OK. Note, by the way, if I chase through each possible path, like there's some IFs in here, if there's some places to go, at least in this piece of code, every possible path through this code ends in a return. And that's a good programming discipline, to make sure that happens.

    注意一下,如果我跟进每一条可能的路径,像是这里的,起码在这段代码中就有很多走向,这段代码中的每一条可能路径,在结尾都会返回一个,这就是一条很好的编程定律,请确保这样做。

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

  • Then at the end of the day what you'll get is something that looks like this which will be a whole day's worth of food intake and then this is what I'd like you to print out and then write about in your concept sheets.

    一天结束后你就会得到,类似这样的一天食物摄入,这就是我希望你们打印出来的,并且在你们观点报告中谈论的

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

  • If that's all it knows, then in that scenario there is no building or anything else; it continues a trajectory both forward in time and backward in time, and it says that whatever seconds, one second before you set your clock to 0, it would've been on the ground.

    如果是这样,在那种模式下,没有楼房或者别的什么,物体的运动轨迹可以沿时间可以向后延伸,也可以向前延伸,不管时间取什么,在零点前一秒时,物体就在地面上

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

  • So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.

    它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志--反斜杠。

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

  • All right, it's so if I looked at it, sorry, IF x is less than y, THEN check to see IF x is less than z, and if that's true, print out x is the smallest.

    好,代码是这样的,对不起,是不是x比y小,然后去看看是不是x比z小,如果都为真的话,显示x为最小

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

  • > David: At some point in time, I'm going to have to have declared the variable as a float before I can then hand it to printf as the insertion value for that format strength.

    >,大卫:在一个特定的时间,我将需要,声明float类型这样的变量,那样我就可以把它打印出来,像是格式化优点的插入

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

  • But here, if I decide I'm going to store things not in x and y, but with some other set of names, for example, I've gotta go back into these pieces of code that use the points, and change them. So I've lost modularity.

    除了要改下借口,但是这里,如果我决定,我不把放在x和y中,而是和其他一些变量名进行绑定,例如这样的话,我就得回到使用这个点的代码,那儿去做更改了。

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

  • I said, use the name mystring to be bound to or have the value of Eric, so I can refer to it anywhere else that I want to use it.

    用mystring这个名字,来绑定Eric这个这样我就能,在任何想用这个的地方使用它了。

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

  • Because in doing that, Python would then have a value that it could pass on into some other part of a computation, and if it wasn't what I wanted, I might be a long ways downstream in the computation before I actually hit some result that makes no sense.

    因为如果这样做的话,Python会将,输入的传递到下面的,一些运算中去,如果这个的类型不是我想要的,我可能会在得到,一个毫无意义的结果之前,经历一个很长时间的,计算过程。

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

  • That doesn't solve the problem we had before though Then I'm going to append it, and keep the last change for future use.

    这样没有解决我们之前的问题,所以我要给它加上一个,让上一次的变化能够用到未来的例子中。

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

  • I'd like to give them a name, so I can refer to them in other places.

    我需要给他们一个名字,这样我就能在其他一些地方引用这些了。

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

  • I didn't have anything in there that says, if you change one of these values, other values depend on it, and I want to make that change to it.

    这样就对了,因为我在代码里面,没有任何的东西说,如果我改变了其中的一个

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

  • You may know that there are big fights being waged around the country now between governments that want restaurants to put calories on their labels -not on labels but on the restaurant menus, or on the menu boards in the restaurant, and the restaurant industry doesn't want this at all.

    你们或许知道在政府与餐饮业间,正在进行一场大争斗,政府要求餐馆将食物的热量写在标签上,不是标签而是餐馆菜单或菜单板上,而餐饮业很不愿意这样

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

  • I'm going to say, gee, p2 is the x value the same in both of them, and if it is, and the y value's the same, then this is the same point, I'm going to return true.

    这样的数据对象,我会把它们命名为p1和,我会去查看,看看两个对象中,的x是不是相同,如果相同的话,就去查看y是否相同。

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

  • So the real pressure is not quite the same because of this attractive force as it was, as it would be without the attractive forces.

    气体压强,由于分子间的吸引作用,会比理想气体要小,这样,我们应该修正p的

    麻省理工公开课 - 热力学与动力学课程节选

  • I then assign thankful true, if so, but notice this little trick: -- I'm going to keep doing this while I am bang thankful -- bang exclamation point means "not," so this is shorthand, sort of clever elegant notation for "while I'm not thankful, keep doing this."

    然后我给thankful赋true,如果是这样,注意这里有个小技巧:,我将一直这样做,当我用满意时-,感叹号在这里的意思是“非“,这是一个可速记的,有几分机灵优雅的符号,用来说明:“当我不满意,保持这样做“

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

  • X That's just the special symbol in C that says don't pass X, that is don't pass a copy of X. Rather figure out where x is in memory, where he is in that frame and provide swap the numeric address in RAM of that value so that swap can go do anything it wants at that address.

    这在C中是一个特殊的符号,指明不传送,也不是传递X的拷贝,而是指出x在内存中哪个地方,它在那个框架中的哪个地方,提供给swap它的地址,这样swap就可以使用那个地址中的数据。

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

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

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

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