I've decided that I need to be able, in my program, to swap the value of two variables. All right.
我觉定在我的程序中,我可以,交换两个变量值,好的。
Because I think it's always good to have a lot of feedback from students to see what's working,
因为我觉得有很多学生的反馈是好的,可以判定什么是可行的,
Because I could've built that in, it says if you change the value of this thing, by the way you need to change recompute those other values in order to make this hold up.
我想要大家通过定义好的方法,来改变实例的值了,因为我可以把这个功能,内置到方法里面去,它的意思就是如果,你改变一个值。
And then we're going to try a demo to see if we can convince ourselves that the kind of calculations we make work out perfectly, and we'll do a test up here about half way through class.
然后我们将会尝试演示去看看,是否可以确信我们能够很好的,做出这个类型的计算,我们将在课程中做一个测试。
So it's important to realize the role of ceramics; they need to make storage jars that could be sealed very well and preserve the stuff for a very long time, and indeed, they did that.
从中希腊人意识到陶艺的重要性,他们需要烧制可以密封得很好的,可以用来长久保存食物的陶罐,他们也的确这样做了
So let's listen to a track here, a sax solo and I am going to try to keep-- make some sense out of this-- because it gets more and more complex-- by following the electric bass underneath so let's listen to an old tape.
那么我们听一下这段音轨,一段萨克斯独奏,我会尽量从中,理出一些头绪,因为我们的音乐片段会越来越复杂,大家可以跟着底下电贝斯的节奏,好的,我们来一下老磁带
Changing the diet of populations is a pretty good idea and it's the kind of thing that could help individuals certainly lead healthier, happier lives, but also could change things like healthcare costs for a whole country, so these are big, big factors.
改变大众的饮食是个很好的想法,它不仅可以让人们过上更健康幸福的生活,还可以改变整个国家的医保费用,所以饮食是个非常非常重要的因素
So you can have good quality and less quality. It depends on your pocket.
所以你可以买质量好的和质量差的。这要看你口袋里有多少钱。
And it gives us an very nice analogy of somebody whose, you know, a coat which could outlast the owner, but it isn't immortal.
他给了我们一个很好的类比,某人的大衣可以,比它的主人存在更久,但它并不是不朽的。
Well, the bracket notation means you can index into this variable.
好的,这个括号的意思是你可以,索引这个变量。
So it's the combination of critical thinking, and the fact that you have such good access to professors, who you could really talk to, that as a very, very young person, had a huge impact to me.
总的来说,批判性思维,以及拥有,好的导师,一位你可以真正与之交谈的导师,对于当时非常年轻的我来说,影响巨大。
You need a hero to help you, and having that hero, encountering the other mind as helper, is what obviates the tendency, even in a nice guy like Tony, toward narcissism which is manifest in the "I," "I," "I" at the beginning of the story.
他能帮助你,有了他的帮助,就可以避免自我陶醉的趋势,即便是托尼这么好的人,也可能会有这一趋势,总是用,“我“,“我“,“我“来开头。
Because DVD has the best image, clarifing and also has magnificent bonus material just incredible when you get on that DVD in.
因为DVD有图像最好,最清晰,也可以提供很好的补充材料,当你看DVD的时候就觉得很棒。
Yeah. People in New York City. You run into so many different people.
好的。纽约的人。你可以遇见很多不同的人。
Word of mouth, even, is a sort of good way to find out.
即使是通过口口相传的信息也可以找到好的实习机会。
You've got to go to the beach on nice days in San Francisco.
你可以在天气好的时候去旧金山的海滩看看。
Well, one of the lessons of this course is we have a wonderful theory, but we don't manage it well, mostly.
我们在这门课里可以学到的一点是,我们拥有很好的理论,但在实践中却总是不能应用得当。
Well, I can, for any given case, measure the pressure, determine the entropy and I'll know what the slope of change will be.
好的,对特定的情况,我可以测量压强,确定熵,并且知道这就是变化的速率。
Yes, I got a new cellphone I can use.
好的,我可以用我的新手机发给你。
All right, this is what's called a recurrence relation, there are actually cool ways to solve them. We can kind of eyeball it.
好,这就是所谓的递归关系,也就是解决问题的相当好的办法,我们可以来看看。
And I think this is best illustrated by giving you a simple little piece of code.
我认为给你看一段简单的代码,可以很好的说明这个问题。
All right, so we can, in fact, observe individual lines.
好的,事实上我们可以看单个的谱线。
But the fact that reducing cholesterol is considered good for you in the first place, depends on these kinds of studies on population intake to know how much cholesterol people are eating and then link it to reports of heart disease, or cancer, or whatever the health outcome is.
但减少胆固醇这个事实,首先对你来说是好的,依据这些关于总体摄入量的研究可以知道,人们摄入胆固醇的多少,关系到心脏疾病,或癌症或其他健康问题
And then the things I have to ask is how much of a division do I want to do?
如果可以这么做,那么分治算法是个好的选择,接下的问题就是我需要把问题分成多少份?
Well, the reason, the way that we can check it is just to see if it's in between our two extreme 1 cases. We know that it has to be more than 1, because even if we had total shielding, 1 we would at least feel is the effective of 1.
好的我们可以检查它的原因和方式是观察,它是否在我们的两种极端案例之间,我们知道它必须大于,因为即使如果我们有完全的屏蔽,我们最小感到的有效值是。
Well, you can but you have to appreciate the implications of doing so is the take-away here.
好的,你可以但是你不得不欣赏,这样做的含义。
It resembles Ruth well enough to remind me of her, and interestingly, it can do that even if it's not a very good photograph.
它和露丝相似到,足以让我想起她,有趣的是,一张不是很好的照片也可以做到
Or more carefully, it's way about talking about certain things the body can do when it's functioning properly, when it's well tuned, as we might put it.
或者更谨慎地说是谈论,身体在机能正常的时候,可以进行的一些活动,我们也可以说在音调调好的时候。
And so I can--a great deal after all, 20 years-- I can give you a pretty good idea of what it's like to live in France, even if I didn't move there for the rest of my life without ever coming back."
所以我可以,毕竟二十年还是有很多,关于住在法国是什么样的感觉,我可以给你很好的描述,就算在我的有生之年我再也不会,搬回法国
If they type in bogus characters, it's going to yell at them and make them retry, and eventually I'm going to get handed back an int, which I'm storing in n. Well, if I actually want to judge this number based on its magnitude, well, I can say now, "If n is greater than or equal to one."
如果他们键入了不合法的字符,它将对他们叫喊,然后叫他们重试,最终我将,得到一个int数,它是存储在n中的,好的,如果我的确想要根据它的量级来判定这个数字,好的,现在我可以指明,“是否n大于等于1“
应用推荐