OK. Now, last thing about variables, and then we're going to start pushing on this, is where can you use them?
好,关于变量的最后一件事,然后我们就要,结束这个话题了,这个问题就是在什么地方可以应用变量?
and it's a lot of fun. OK, so the project we worked on was a bubble gun.
真的很有意思。我们组设计的是气泡枪。
OK, and we'll just plant that idea, we're going to come back to later on, as we carry on.
好,我们现在就只是初步形成这个思想而已,我们会在以后继续上课的时候,回来讨论这一点的。
OK, so w, first of all, work is being done to the system on the left hand side here.
好的,首先,我们通过左边对系统做功。
OK, good luck on your tests, and remember the review session if you care.
好的,祝你的测验好运,并记住复习如果你在乎的话。
Eh, right? Get on it! -OK.
是吧?,快读这本书!,-呵呵,好的。
Ok All right. Let's take 10 more seconds on that. OK.
好,再给10秒钟。
So the inventor of the chess game said, "Ok. What I like is on the first block, first square, I would like one grain of rice.
于是象棋发明者说,“好吧,我希望,在第一个方格上,我想要一粒大米。
Ok, on Friday nights, I do go out to Hollywood, that's where I go.
好,周五晚上,我会去好莱坞,我去那里。
Ok, well... I actually, I've only been on two dates on "OkCupid".
好吧,其实我也只是在OkCupid上相过两次亲。
OK. This is still boring, so let's step on the accelerator.
好吧,这还是很无聊吧?,让我们打开加速器。
OK, you say, come on, I've seen these all the time. Every time I type something into my program, it does one of these things, right?
好了,或者你要说,我总是能看见这些,每一次我在程序里输入一些内容的时候?
OK, you're going, yeah, come on, that makes obvious sense. And it does.
但是你们能把这个当做模板记住,因为我们还会用到它。
And we'll now move on. OK.
现在让我们开始吧。
OK? And in fact, if you look at the code up here, and it's on your handout, the very first one, x 1, right here- if I could ask you to look at it-- is a piece of code to do it. And I'm less interested in the code than how we're going to analyze it, but let's look at it for a second.
实际上,如果你看看,你们课堂发的材料上面的代码,第一页上的,就是那-,大家请看看实现的这一部分代码,我不太关心,我们会怎么解释这个代码,首先让我们先看看。
OK. We wanted to finish up that section, we're now going to start on a new section, and I want to try and do one and a half things in the remaining time. I'm going to introduce one topic that we're going to deal with fairly quickly, and then we tackle the second topic, it's going to start today, and we're going to carry on.
我们该结束这一段了,现在我们要开始新的课程,我在接下来的时间里要做1。5件事情,我首先会很快的对一个我们,要学习的课题,进行一个介绍,然后再进入第二个话题,今天我们只是开始这个话题,以后还要继续讲。
OK, any questions on this part here.
有问题吗?
What it's designed to do is to give you the resources you think you need so that I can focus on measuring whether you'velearned anything as opposed to whether you've remembered, memorized anything, OK, and of course, something to calculate with.
这样做的目的是给与你们,认为需要的资源,这样我就能专心于,衡量你们是否已经学到了什么,而不是你们是否记得了什么,背下了什么,还有,当然,要计算一下。
OK, people understand what's going on here?
好了,大家都明白了吗?
OK, so let's say some young engineer is on the job the first day and says, OK, let's put in 200 kg of tickle, and let's put in about 25 kg of mag.
比如一些年轻的工程师,刚来上班时会说,投入200kg的四氯化钛,投入25kg的镁。
All right. OK, looks like we got the majority, which is a good start, but we having discrepancy on what people are thinking.
好的,OK,看来大部分人都做对了,这是个不错的开始,但还有一部分人的答案有分歧。
OK, now one last thing that he did is that he said, OK, what's going on here?
现在他做的最后一件事就是他说,这儿怎么了?
It's words to you, or to the reader of the code, that are telling you what's going on inside of this code. OK?
注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?
Any questions on calorimetry? OK.
关于量热法有什么问题?
Very nice. OK, I'll work on that.
很好的建议嘛,看来同志我尚需努力。
OK. So let's actually go to a clicker question now on radial probability distributions.
好,让我们来做一个关于,径向概率分布的题目。
Can you go ahead and take 10 more seconds on this first clicker question here? OK.
大家先来花十秒钟的时间,把第一个选择题做了好吗?好。
Because you won't want to do everything from scratch yourself, you want to be able to look at what is being created by somebody else and understand what is inside of there, whether it works correctly and how you can build on it This is one of the few places where plagiarism is an OK thing.
因为你们不会想无论做什么事情,都由你们自己亲自上阵,你们希望有能力读懂,别人创造的语言,并了解其中的内涵,运转的正确性和如何在其基础之上继续发展,这是为数不多的,合理的作弊行为之一。
Barnyard1 OK. The change is, well, on Barnyard 1 it looks much the same as it did for Barnyard.
也就是solve1和,做出的变化就是在Barnyard1中。
On the other hand, if I want to sort it first, OK, if I want to do sort and search, I want to sort it, it's going to take n log n time to sort it, and having done that, then I can search it in log n time.
我先排序,好的,如果我想排序再搜索,我要排序,这需要花n,log,n时间排序,然后做完了,我们能花log,n时间搜索,啊,哪一种更好呢?恩,呵呵。
应用推荐