So let's take a look down here at what I'm doing and notice here that this is perhaps more compelling; right?
让我们往下看一下我在做什么,请注意这里这个可能是更引人入胜的,对不?
OK. So, soon as I get down to a list that has no more than two elements in it, I'm done.
不超过2个元素的列表,那就结束了,注意,这里是小于等于。
And it's, again it's a macroscopic pretty big thing so typical might be 10 kilojoules per Kelvin, and that's pretty big, right?
相当大的数值,典型值大概,是10kJ/K,它相当大,对吧?,注意这里不是每摩尔?
And now notice as promised, I'm using a Mac here so my cursor is not actually blinking, but the cursor is waiting there for me.
现在注意正如所承诺的,这里我用的是苹果电脑,所以我的光标不会闪烁,但是光标在那里等我输入。
What's important for our immediate purposes is her identification of Milton as a cultural authority.
这里重要的,我想引起你们注意的是,恰德莱将弥尔顿定位为一个文化权威。
And notice again, just to emphasize the point, the relevant lack of belief here has to do with the death of the body.
为了加深印象,请再度注意,在这里信念的缺失,是和肉体的死亡密切相关的。
So this is an 'in shoes', be careful where we are here, this is an 'in shoes in shoes' argument, at which point you might want to invent the sock.
所以这是一个不断换位思考式的过程,注意一下这里的措辞,这是一个换位再换位思考的过程,说明我们也要换来换去思考
What's happening and interests me acoustically, and again we'll come back to it, is that we're getting up toward here, and notice how these pitches in terms of the ratio frequencies are getting very close together.
这段乐曲从声学的角度上让我很感兴趣,我们再看看它,音乐升高到这里,然后我们注意到这些音高,是如何根据频率比最后汇合在一起的
That's for another lecture Here they are.
不过这是另一堂课要上的内容了,注意看这里
So, sometimes you'll find the Rydberg constant in different forms, but just make sure you pay attention to units because then you won't mess them up, because this is in inverse seconds here, the other Rydberg constant is in joules, so you'll be able to use what you need depending on how you're using that constant.
有时候你们会发现Rydberg常数,会写成不同的形式,但你们要注意,它的单位就不会弄错了,因为这里是秒的倒数,而另一个Rydberg常数是焦耳,所有你可以根据你要怎么使用,这个常数来选择你需要的常数。
And the last piece I want you to see here, and then I'll let you go is, notice now how that encapsulation, that binding things together has really helped me.
我想要的那么干净,最后一点要给大家讲的是,也就是下课前讲的一点,就是请注意这里是怎么封装的,也就是把东西绑定在一起。
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.
就是给我一个所有东西的列表:,所有的方法,与这个类关联的,有一些是我写的:,还有这里,请注意,是一些内部的定义。
And the thing you should notice here is that it's doing a lot of the same things over 2 1 and over again. So, for example, we'll see 2, 1 2 1 here. And 2, 1 here.
在这里你要注意的是,它不断在重复同样的工作,例如我们看这里的1,还有这里的。
So one of the things I want you to notice here is that testing and debugging are not the same thing. When we test, we compare an input output pair to a specification.
这里我想大家注意的一件事,就是测试和调试是不同的两件事情,我们测试的时候,我们把输入输出,跟程序的规格说明书对比下。
So, for example: in this case, my list is a bunch of integers. And one of the things I could take advantage of, is I'm only going to need a finite amount of space to represent an integer.
列表是一系列整数,要注意的这里的优势能够,用有限的空间来表示整数,例如,如果我想要操作。
It's simply, notice the form of it here is, it's going to take two arguments, self self is the original instance.
这很简单,注意这里的格式,它有两个参数,你说对了,是原始的实例,and,you’re,right,也就是说。
Well I need to take that number and I'm going to turn it into a string. So notice what I'm going to do right here. I take that number and convert it into a string. That's an example of that type conversion we did earlier on. By doing that it makes it possible for me to treat it as an ordered sequence of characters.
我可能得把这个数字变为字符串,请注意我这里是怎么做的,我把这个数字,转化为字符串了,这是我们之前学过的,类型转换的例子,这么一来我就能把它按照有序的。
It's kind of a stupid lack of feature that this is the case, but notice that here is main, at the top of my file.
这是有点笨的,缺少特征的,就是这种情况,但是注意这里是main函数,在我的文件的顶端。
And notice what this is showing is that the IFs can be nested.
请注意从这里我们可以,看出IF是可以嵌套的。
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值,如果是这样,注意这里有个小技巧:,我将一直这样做,当我用满意时-,感叹号在这里的意思是“非“,这是一个可速记的,有几分机灵优雅的符号,用来说明:“当我不满意,保持这样做“
应用推荐