Usually we write in journals, but I allow them to their writing in this book.
通常做法是写日志,但是我让他们在这个本子上写作。
OK. Now, having done that, again I want to stress this idea and I'm going to write it out one more time, that there's a particular format here.
好,讲完了这些,我又想要强调一下这个思想,并且再一次把它写出来了,就是有一个特定的格式。
I kind of like them, but I think that they're not enough; that's why I'm writing a book about this.
我有点喜欢他们但是我想他们的计划并不周全;,所以我正在写一本关于这个的书。
So, I don't even have to worry because you're not writing this down, so I can just fix it when I post the notes and no one will ever know, except that this is not OpenCourseWare.
所以我甚至不用担心,因为你们不会把这个写下来,所以我可以在我给出讲义的时候再修改,而且不会有人知道,但除非这不是公开课。
Now I mention this only because over time, this will become important when you're not reading in files necessarily but writing files.
我之所以提到这个是因为久而久之,当你自己写代码而不是读代码时,这会变得非常重要。
Now, I will need the other board; I want to figure out the Nash Equilibrium on this game.
我再找一块黑板来写板书,下面我们寻找这个博弈的纳什均衡
And, just to show some of the hidden balance here, 1 here we have one mole. I don't put a one in front.
这儿有一些隐藏的平衡,比如说这个1摩尔,我并没有在前面写了一个。
Because it happened in this summer, I discovered the writings in film theory of Jean Cocteau and let me give you a little.
因为这个暑假,我发现让·科克托,写的一些电影理论,我来和你们提一点。
What should I write next? Well, those are the two eighth notes we were talking about.
下面我该写什么呢,这个,这是我们刚才提到的两个八分音符
By the way,I should write these things down,N?mes.
我顺便写一下这个词,尼姆
Let's take a system. Under constant pressure T1 V1, going to a second -- this is the system, so let me write the system here.
我们建立一个系统1,在恒定的压强T1,V1,下,变成了另一个系统,-这个初始的系统让我把它写在这。
Now, in your book, there's an example of plasmid where I've given you the exact sequence of nucleotides that makes up the whole double stranded DNA molecule.
现在在你们书里,有个质粒样本,我将组成这个双链DNA分子的,核苷酸序列写在这里了
Thing I've got a little procedure that could do that, but you know the simplest thing I could do is to say well, gee, wait a minute, why don't I just check to see if these are the same thing?
这两个点是同一个点么?,我已经写了一小块代码,可以提供这个功能,但是你知道的我可以做的,最简单的事情就是说好,嗯?,等等,我为什么不直接去看看,这两个东西相等不相等呢?
So, for example, down here I wrote that it was n 2 and that it was h 2, but when I re-wrote the molecules up here, you saw that it's an h h single bond where it's a nitrogen-nitrogen triple bond.
比如,在这下面我写的是氮分子2,而这个是氢分子,但我在上面把这些分子的形式改写了,大家可以看到,这是一个氢与氢之间的单键,含一个氮与氮之间的三键。
Because the first time I wrote the program, I didn't have anything like that here and a stock could go to and then recover.
因为我第一次写这个程序的时候,我什么也没有,一只股票可以等于0然后再恢复。
In order to explain it-- I had to write down the binomial distribution to explain it properly.
要解释这一点,我要先在黑板上写一个二项分布,以便于解释清楚这个问题
And what's this little loop say to do? This little loop says I'm going to write a function or procedures that takes in two messages.
这个小循环是做什么的,这个小的循环是,我要写一个函数或者过程来接受两条消息。
Which is a way of reminding you that I need to think as I write the code about what are my expectations from the input, and how might I enforce them.
通过这个我在提醒大家,在写代码的时候,要搞清楚对输入的期望,并思考下如何执行这些期望。
I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?
完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?
That means starting at the first one, I'm going to do something to it. And what am I'm going to do? I'm going to take that character, convert it back into an integer, and add it into some digits. And I've done a little short hand here, which is I should have said some digits is equal to some digits plus this.
这意味着从第一个字符开始,我要对他们进行一些操作,我要去做什么呢?我要取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。
I've certainly written code that has this problem, I've tried to use my own code that has this problem, and good to us, right, good hygiene, I'm going to use that word again here, of getting into the habit of writing defensive code up front, it's part of that collection of things that you ought to do is a great thing to do.
我举手了吧?,我当然写过犯这种错误的程序了,我也尝试过应用含有这种错误的代码,不错,好的卫生,我还是要用这个词,对我们有帮助,养成写防卫性,代码的好习惯,是你应该做的,一系列事情之一,也是我们日后要做的主要的事情。
I studied the Paulson proposal carefully, since I'm writing a New York Times column about it which will appear Sunday Reading the various commentaries about the proposal I had the impression that not many of them are very--thinking very deeply about it.
在我写这个星期天将发行的,纽约时报的金融专栏之前,我曾认真研读了鲍尔森的改革计划,在我读过各种各样关于改革计划的评论之后,我深深地感觉到不是每一个人,都能深刻的意识到改革的利弊的。
For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?
对于后者来说,运行测试用例,对它会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?
I'm going to go ahead and change to this Looks pallet over here.
我继续说,现在我们要改变这个写着Looks的图块。
And again, I've written for you, but you can figure out what the electron configuration is just by writing up in this order here.
同样,我已经写出来了,但你们可以把这个写出来,就知道电子轨道构型是什么。
OK, here we go, here we go, you see, I'm doing it down here, I can't see it, does that-- ah, I hear his sighs of relief, OK, good. There we go. Better. All right.
好,我们开始,大家可以看到,我在这里写这个程序,我看不见,这是不是-啊,我听到大家放松的叹气了,好,让我们开始吧,好多了,好。
Ah, n times, because for each value of i, I'm going to do that m thing, n*m so that is, close to what you said, right?
因此这就和你说的差不多了对不对?,这个问题的复杂度为,让我写下来,是-对不对,是?
And to do this, I'm going to use some code that I've already typed in.
为了达到这个目的,我会去使用一些,我已经写好的代码。
If I said "chord progression"--I think we have that term up on the board today.
当我说和弦进行,我想今天我在黑板上写过这个词。
We've got this scale up here.
我把这个音阶写在这了
应用推荐