• When I call this class definition, it calls init, init and I give it an x and a y value.

    我说过,当我们,调用这个类的定义的时候,它会去调用。

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

  • It's got this funky looking form, right, it says, I've got something that I'm going to call a class, got that key word class right here.

    以及我们怎么来使用这些方法,因此我要回到这个概念上来,让我们来建立第一个吧,就在你们课堂手册的这儿,我会去定义一个

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

  • They're pretty straight forward to do and it gives us an idea what kind of nodal structure we can expect it an orbital.

    这个对我们来说很明显,而且让我们对,预计是哪节点有个概念。

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

  • Generally, you think about the immune system protecting against different classes of pathogens and several classes of pathogens are shown on this table.

    大体上,你们会认为免疫系统使,我们免受不同种病原体的侵害,这个表格里介绍了几病原体

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

  • If you look at what the law says, they tend to use the word depository institution.

    如果你看法律文章的话,他们更倾向于储蓄机构这个词。

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

  • The grains in the orange side you're supposed to be eating more of those than what might be a smaller slice of the pie here, or the triangle.

    相比在这个图中用小块表示的食物种,用橘黄色表示的谷物食物是你该多吃的

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

  • This guy--I don't know who he is but he seems to be on a lot of these things but the thing is you don't need to rely on him.

    这个家伙,我不知道他是谁,不过他看起来在很多这地方出现,但你不必依赖他做的表情。

    耶鲁公开课 - 心理学导论课程节选

  • But the fact that this type of report the goverment published itself suggest that they are thinking about it and once it becomes part of the public discourse this typle of issue... some action is likely to follow.

    政府自身愿意写出这种报告,从另一角度说明,他们在思考这个问题,一旦这个问题受到公共瞩目,这问题。,就可能有人开始动手解决。

    普林斯顿公开课 - 国际座谈会课程节选

  • This is very important,which is why I am doing it: "If we want to know how fast a human being can run, then it is no use to average out the speed of a "good sample" of the population; it is far better to collect Olympic gold medal winners and see how well they can do.

    这话非常重要,是我作这个研究的原因:,“如果想知道人最快能跑多快,那从好的样本中测出平均数是“,没用的;,而应该收集田径奥运冠军的信息,看他们能跑多快。

    哈佛公开课 - 幸福课课程节选

  • And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.

    我不太记得中的这些型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个型的数据,需要占用多大空间。

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

  • It's an example of a very common tool that's going to be really useful to us, not just for doing search, but for doing a whole range of problems. That is, in essence, the template the describes a log style algorithm.

    不仅仅是做搜索,还可以解决一整问题,本质上,这个模板就描述了,对数形的算法,我们一会再回来。

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

  • PROFESSOR: Last time, Professor Guttag introduced the idea of objects and classes and this wonderful phrase called object-oriented programming.

    教授:上节课,Guttag教授,介绍了对象和的概念以及,面向对象编程这个美妙的短语,这是我今天想继续讲的一个话题。

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

  • When I try and evaluate that expression of greater than, is going to go into the class to say greater than is a comp method.

    这个大于的操作符的时候,是到的定义里去识别,大于是一个比较的方法,那么让我在这里说仔细一点吧。

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

  • Some of which I built: cmp, init, str. And there, notice, are the internal definitions And in fact I should've said, we often call those things fields.

    就是给我一个所有东西的列表:,所有的方法,与这个类关联的,有一些是我写的:,还有这里,请注意,是一些内部的定义。

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

  • I'm going to go through this rather quickly because there are other courses at Yale that will cover this more thoroughly, notably, John Geanakoplos's Econ 251.

    这部分我会讲得比较快,因为耶鲁大学还有其他课程,会更详细地讲解这个部分,像是约翰·吉纳科普洛斯教授的,经济251号课程。

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

  • Again, I could have some other functions to compute things, but this is typically the place where I'm going to put them in.

    注意这个声明典型的行为,就是为了定义了内部变量,以及的内部特性,在说一次,我可以写一些。

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

  • Right now it's empty, actually it's not quite empty, it has a pointer back to the class.

    当我调用了这个类的,定义声明的时候,它在内存中的特定点。

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

  • And is able to then say, inside of that class definition, find the value of x.

    这个类的定义这里然后取值,也可以这么说,在的定义的里面。

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

  • They are instances of a class, and associated with that class is a set of methods.

    它们是同一个的实例,与这个类相关联的是一个方法集,因此例如,我可以说。

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

  • I'll show how that works in just a moment, but estrogen for example, is one of those.

    我马上就给你们讲这个过程,举这分子中的一种,雌激素作为例子

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

  • Ok, and again, I'm going to remind you, the class is this template.

    就在这里,我想大家在,你们的课堂手册上看看这个,好,我将会回去重建下这个类

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

  • But now I'm going to change it, so what is that new version of class say.

    好,我又要提醒下大家,这个模板。

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

  • Right there, and I'd like you to ook at that in your handout.

    着手做这个理想的了,我想要讲讲概念。

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

  • I do want to talk about one important subject which you might not have thought too much about and that's lipids, because lipids are so important to the structure of the body because they make up the membranes that form the cells that are the fundamental units.

    我的确想要讨论一个重要的主题,这个主题也许你们都没有深入思考过,那就是关于脂的问题,脂对身体结构形成十分重要,它是组成细胞膜的基本单位,而细胞膜能够维持细胞形态

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

  • I going to come back in a second to how it actually does that, but it basically says, get me x value for p 1, get me the x value for p 2, compare them, just as you would normally.

    是一个的实例,我要去取的这个实例,所关联的x值,我稍后会讲讲实际上,这里是怎么实现的,但是基本上它的意思就是,给我p1的x值。

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

  • I'm going to build, this case, a Cartesian point, I'm going to build a second Cartesian point, and my segment passes in those class instances.

    我要去建立,在这个例子中,建立一个笛卡尔点,然后再建立一个笛卡尔点,然后向我的segment

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

  • I can build class stock, and I can test class stock, before I have a class market.

    我可以建立一个stock,然后在有macket之前测试这个类

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

  • So you can actually say, how do I know which methods are associated with the class? For that, we can call dir. And what it does, is it gives me back a listing of all the things, dir all the methods, that are associated with it.

    我们开始建立了,我们得到了这些方法,因此实际上你可以说,我怎么知道,哪些方法是关联与这些的?,为了解决这个问题,我们可以调用,这个方法的作用。

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

  • So now let's look at it.

    所以现在让我们来看到这个类

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

  • It's actually an object somewhere.

    当我调用这个类的定义的时候。

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

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

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

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