What I'm looking for you to come away with when you read those scientific publications particularly, are the big picture issues.
我希望大家,特别在阅读这类科学读物时,要注意抓重点
Notice the form of it, it's just the name of the class followed by open paren, close paren, treating it like a function.
我该怎么来使用类呢?,好,我可以像调用方法,一样调用类,你可以在下面看到,创建一个名为。
But if you look at-- Now, I have these two lumped together; I don't have them separately.
如果你再看看...,我把这两类储蓄机构加在一起,我没有它们分别的数据
What I want to do in here is just introduce some of the basic kinds of receptors.
我在这里想向你们介绍,几类基本的受体
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.
这个家伙,我不知道他是谁,不过他看起来在很多这类地方出现,但你不必依赖他做的表情。
You'd be hard pressed to identify what the meter of that is so that's one reason, and of course what--where am I going with the next important point about what's happening in this music?
你会很难确定其中的节拍,这也是原因之一,当然这也是我将要讲解的下个关键点,关于在这类音乐中的情形
Again, I could have some other functions to compute things, but this is typically the place where I'm going to put them in.
注意这个声明典型的行为,就是为了定义了内部变量,以及类的内部特性,在说一次,我可以写一些。
Having created c p 1 and c p 2, I had this weird looking form here.
我可以在类中建立一些属性,我可以给类增加一些特征。
Right now it's empty, actually it's not quite empty, it has a pointer back to the class.
当我调用了这个类的,定义声明的时候,它在内存中的特定点。
Every time I use it, I'm creating a new instance, that's a different thing inside of memory.
我每次调用它,我就新建了一个类,这在内存中是个不同的事情。
Right now it's got that second key word there called pass, which is just Python's way of saying there's an empty body in here.
现在我在完善它的一个简单部分,但是首先,类是用来干什么的呢?,把类认为是可以创建一个。
What did I just do there?
我在我的类的定义里面定义的东西之一?
I'm going to add to it in a second, but I want to build up to this.
关键词“类“在这里,然后我要命名这个类。
One thing I do want you to remember is that IgM class antibodies are the antibodies produced on first exposure.
我希望你们记住的一点是,IgM类抗体是人体在,第一次接触抗原时产生
What we're really doing, or I shouldn't say what we're really doing, a basic piece of what we're doing, when we talk about classes or objects, is we're doing something that Professor Guttag mentioned, we're defining an abstract data type.
或者我不应该,说我们真正要做的,当我谈到类或者对象的时候,我们在做的基本的东西,如Guttag教授提到的,就是定义一个抽象数据类型,那么这到底是什么意思呢?
I can build class stock, and I can test class stock, before I have a class market.
我可以建立一个stock类,然后在有macket类之前测试这个类。
应用推荐