So the next time I need it, I can look it up.
所以下次我需要的时候,我就可以进行查询。
And what I'm showing here is not on your notes, if you're interested you can look it up in your book.
我这里展示的没有在你们的讲义里给出,如果你们感兴趣的话可以看看课本。
And it just gonna be... I really look forward to having someone who I can keep speaking to, keep learning from, and keep sharing my ideas with, and keep having that open, just an open door.
将会是,我非常期待,能够有一个像他这样可以一直聊天,一直学习,分享我们的看法,一直可以对他敞开心门。
OK? So you can see that, it's just walking through it, and in fact if I look at a couple of another-- another couple of examples, it's been a long day, again, you can see that property.
恩,其实你能看到,他就是遍历列表,你要有空的话,可以再看很多很多其他的例子,你能够看到这个属性。
Still, from the fact that I can imagine the world in which I look around for the Morning Star-- there it isn't.
事实上,我可以想象这样,我到处找晨星,但是却找不到
We have no idea what this menacing contraption actually is supposed to look like or what it's actually intended to signify, but we can know, I think, with some certainty that it's not scrannel.
我们无从得知这个威胁性的装置,实际上是什么样或者要代表什么,但是我们可以通过一些并不细小的确切性得知。
Here it goes in the middle, and if you look carefully there, I didn't really make it clear enough, you can see, suddenly a strategy that looked crazy shooting to the middle, that suddenly started to seem okay.
这是中路射门的情况,如果你仔细看,我可能画的不是很清楚,你会发现曾经卖傻似的中路射门法,现在竟然一下子变成香饽饽了
I brought the text with me. You can look at it now or at your leisure.
我带来了这部作品,你们可以看看,现在或者是有空时。
I cannot even make it look hard because I have memorized this problem from childhood, so there is no way I can make this look difficult.
我不会让这些问题变得看起来复杂,因为这些问题我童年时就熟记于心,我无法让它变得复杂
Yeah, I like to look at films in different ways, because you can look at one film and explore it like the music. For example, in Film Music we looked at Psycho which I see on the syllabus, and we talked about the music in that film.
是的,我喜欢从不同的角度研究电影,因为你可以看一部电影,从音乐的角度研究它,例如,我看到教学大纲上有《精神病患者》,在电影音乐课上我们看了这部电影,并讨论了电影中的配乐。
I want to abstract that. And the abstraction you see, right here. I'm going to highlight it for a second so you can see it. I want you to look at it on the handout as well.
我需要进行抽象,这个抽象就在这儿,我把它强调给你们看看,我希望你也能看看讲义里的这部分内容。
I can't think of what it would look like.
我想象不出来。
On the one hand, you can imagine somebody who says, " "Look, it's bad enough that I'm going to die, " but the fact that " there's nothing I could do about it just makes it worse.
一方面,可以想象有些人会说,“我会死去这已经够糟糕了,“但是对此我无可奈何,“却让它变得更糟糕。
So I can similarly do this, which is going to look strange because it's going to give me the same value back out, but it actually did a slightly different thing.
我也可以通过类似的手段来达到这个目的,这看起来很奇怪,但是会返回相同的值,但是它的实现真的有点不同。
Now, this is not the nicest way to do it but it'll work. I can look at the type of the value of base and compare it to the type of an actual float and see, are they the same?
这不是最好的办法但它确实有用,我可以得到底的值的类型然后,和一个真的浮点数的类型比比,看他们是不是一样?
should we conclude therefore, given that we've got the premise, "If you can't picture it or imagine it, then you can't believe in it," since I've just said, look, you can't imagine being dead, but that's not due to any failure of imagination, that's because there's nothing there to imagine or picture.
于是我们就应该基于这个前提,想象不了的东西就不能相信,得出结论吗“,我刚才已经说过,人不能想象自己的死亡,不是因为想象的失败,而是本来就没有东西可以想象。
Meaning, I'm just going to write a little loop that does that. All right, so let's go back to our code. That's right, let me pull this over a little bit, so I can see it. And what I'd like you to look at, I'm going to highlight it just for a second here, is those two pieces of code.
意思就是我只需,写一个小循环就可以了,让我们回到代码,让我们向下拉一点,我才看得见,我希望你看看这里。
Can I get you all to look at Game 1 and start thinking about it.
大家先浏览下游戏1 然后思考一下
OK, and if I wanted to look at it, we can come back over here, and we can see what does c p 1 look like, interesting.
现在对于这里的每个实例,我都赋了x和y值,好,那么如果我想要研究下它,我们可以回到这里来。
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 I'm going to go over here, and I'm going to type test search-- I can type and if you look at your handout, it's just a sequence of tests that I'm going to do OK. So initially, I'm going to set up the list to be the first million integers.
大家可以看看你们的课堂材料,那儿有一些我要做的实验,好,一开始我先去建立个,含有一百万个integer的数组,对,这有点儿简单,但是这给我提供了这样一个有序的数组。
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
应用推荐