So let's just to see how you run through some of those calculations. Now let me just ask who here took 5.111? And who here took 5.112?
那么让我们看看怎样,推导这些反应,现在让我问一下,这里有谁学过5。111?谁学过5。112?
And just try to, I try to not be the downer in a situation.
然后就是想办法,我努力让自己不要那么沮丧。
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.
这个大于的操作符的时候,是到类的定义里去识别,大于是一个比较的方法,那么让我在这里说仔细一点吧。
So let's do a quick clicker question, and you tell me how many valence electrons does fluorine have? Remember, valence electrons are different from core, they're only the outer-most electrons in the outer-most shell.
那么让我们来做一个小选择题,请大家来告诉我,氟有多少个价电子,要记得,价电子与芯电子不同,它们是在最外壳层的最靠外面的电子。
I assume that those problems are not that difficult and I've given you a lot of practice.
我知道这些题目没那么难,我已经让你们练过不少次了
But I don't want that for myself.
但我不想让自己那么做。
So, in your recitations sections, I have asked the instructors not to do that.
所以,在你们的背诵课上,我已经让讲师不要那么做了。
And so if you are a bit of a geek and would like to play net/aces with this you can go to cs50.net/aces and I don't think Willie will give it to you to keep but you can borrow and play for some amount of time in exchange for some feedback on it.
所以,如果你有兴趣并想玩玩这个,那么你可以访问cs50。,但是我觉得Willie不会让你保管它,你可以去借,然后玩一段时间,但作为交换条件,你需要反馈一些意见。
And you're always so nice. You make me feel like a king.
你一直那么亲切。你让我感觉像一个国王。
Second, since we watch films, we don't have a great deal of time for leturing on my part, discussion by you, or the presentations, we'll be talking about its possibilities.
其次,由于我们要看电影,我们就没那么多时间,让我来讲评,让大家来讨论,或者做演讲,我们之后再讨论这些的可能性吧。
But in particular, it's going to use self to refer to that instance.
好,那么让我换种,稍微不同的说法吧,我有一个类的定义。
OK. All right, let me show you one other tool that I want to use. Which is, I've written that piece of code, I ought to check it. Well, I could just run it, but another useful thing to do is, I'm, especially as I want to debug these things, is to simulate that code.
好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是当我想要调试代码的时候。
I don't know if you can see, probably not, what's written on here, so let me point out to you a few things.
我不知道大家是否知道,这很可能不是其中的一种,那么让我来为大家指出一些事实。
And yeah, I know you know how to do it, but let's think about what might happen if I wanted to do that.
对,我知道你们知道该怎么做,那么让我们看看如果我,想要完成的话会发生什么。
If I'm basically just squeezing jello, that is, I'm trying to make the problem simpler, but the combination turns out to be really complex, I've not gained anything.
如果我只是简单的挤压果汁,那么我是在尝试着让问题变得简单,但是合并过程就真的比较复杂,我得不到任何东西。
OK, so let me go back to where I am.
好,那么让我回到刚才说的地方。
Let me generalize this. In this case, my incrementer was just adding 1 to an integer, it's a pretty straightforward thing to do.
当我完成后,我不会再显示任何信息了,好,好,那么你们已经看过两个简单的例子了,让我来讲讲概念,在这个例子中。
If seeing things that participate in the forms remind me of the forms, it's got to be because I've met or been acquainted directly with the forms before.
如果我看到了,一种型相的物体能让我想到这型相本身,那么我之前一定直接见过,或者对那型相本身很熟悉
And what is it going to happen is that init is going to then apply.
它会被应用于这些参数,那么让我来给大家看个例子吧。
I should have done this earlier by typing the Cartesian form earlier, so let me go back to where I was, sorry for that, let me go make this a 1 again.
我应该早点通过输入笛卡尔形式,来说明这个的,那么让我回到刚才说到的地方,很抱歉,让我去把,这个a,1再做一遍。
Remember last time, we wrote this simple piece of code to print out even or odd. If, you know, x, it was in fact, even or odd. So let me show you what a flow chart for that would look like, because I want to make a comparison point here.
记得上节课我们写过的,那个显示奇数还是偶数的程序么,如果,你知道,x,实际上是奇数还是偶数,那么让我来为大家画个这个程序的流程图吧,因为我这里想为大家做个比较。
OK, so how can I code this up? Well, you might think, let's just jump in and write some code, I don't want to quite do that though, because I want to show you another tool that's valuable for thinking about how to structure the code, and that is a something called a flow chart. Now.
好,那么我怎么把这个以代码实现呢,你可能会想,让我们进去直接写代码把,但是我不想这么做,因为我想教给大家另外一项很有价值的,用来组织代码的工具,叫做流程图,现在,像Guttag教授,和我这么大岁数的人。
So I guess I should go back, and let me do this correctly this way. Again, I can look at test, test and I guess test now if I want to get the element out-- angle bracket or square bracket?
但是这不是我想要的对不对?,我认为我该回到这里,让我改正这个错误,好,那么我还是对元组,那么现在我想从test中取出元素来?
应用推荐