I'm gonna keep as part of each stock, it's history of prices, which we can initialize, well, I've initialized it as empty, but that's probably the wrong thing, right?
我会把股票的历史价格,作为每只股票的一部分,我们可以先对它的历史价格进行赋值,好了,我先给它赋了空值,但是这样做可能不对,是吗?
We need to discuss this so if you text me, it will help a lot.
我们得讨论这事,所以要是你能给我发短信的话,那真的太好了。
OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.
好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。
What I'd like to do is suggest to you that if you still haven't determined on a paper topic, you might very well consider this one.
我想给你们一个建议,如果你们至今未选好论文的题目的话,这个话题或许是很不错的一个选择。
I take good to mean good. Consequently, if you were to write a good paper for me, B that would get a B.
我认为好就是好,如此一来,如果你给我写了篇好论文,就会拿。
What I want to leave you with is my picture, not a very elaborate picture, of what Biomedical Engineering is to me, and two parts of it.
我想给你们看我画的这张图,图虽然画得不太好,但包含了我对生物医学工程的理解,有两部分
You're not allowed to be on the fence here.
好,我给你们十秒,十五秒去思考。
And it's not a la-di-dah thing where--I'll tell you, once there was a student in there who had really fantastic French and I said, "Why is your French so good?"
其实也不是那么严格要求的,我给你们讲,以前有个学生法语特好,我就问他你法语怎么这么好啊
So, that's something you will encounter in your review reading for the sections, that kind of review -- what we hope you have picked up from high school or will pick up quickly by doing some review. So, how about we have everyone take ten more seconds on the clicker question, get your final answer in here.
如果你们预习这部分就会看到它,我们希望你们,通过这样的预习能,快速的把高中,所学的都回忆起来,好,我给你们每人10秒钟回答,这个问题,在这里给出,你们最后的答案。
Yes, in back Yes Student: Dancing bears Professor Paul Bloom: Dancing bears Okay I got to write your name down-- ... report you to health - No Dancing bears, very good ? Anybody else?
好,后面那一位,跳舞的熊,跳舞的熊,好吧,我要记下你的名字-,把你汇报给精神健康,开玩笑,跳舞的熊,非常好,还有吗?
But if you say, well, I don't know how to do this, I am not going to bother, don't grade the paper.
但是如果你说,好吧,我不知道怎么做这个,我想麻烦,别给试卷评分。
Okay. I had intended to give you just a little bit of a rhythmic quiz but let's just do one of these things.
好了,我想给你们,做一些小小的节奏测验,不过我们现在就做一个吧
Yeah, I voted for president Obama and I'm really disappointed.
好。我把票投给了奥巴马总统,我很失望。
All right. That actually seems like a really nice thing to have, and so let me show you what that would basically look like.
好了,那真的像一个,可以拥有的好事情,所以让我来给你们演示,那基本会是什么样子。
OK, I want to spend the last few minutes just showing you a couple of other things that we can do in here.
好,我想把最后一点时间,用来给大家看看我们能做的,一些其他的东西。
All right. I want to do just a couple more quick examples.
好,我还想给大家,看看几个小例子。
Control of gene expression is a very big topic and so I'm going to show you one cartoon to sort of tell you that it is a big topic that's really important.
基因表达的调控是个大课题,我给你们放一些动画,好让你们理解,其涉及范围之广,意义之重
Good question. Actually, I've got to get rid of this candy, so since it was a good question, here you go. Nice catch. Almost. Sorry. OK. No, I'm not. I'm sorry. I thought you had it, and then I've got the wrong glasses on and I realized you didn't, so I will, ah come back to that later.
问得好,事实上我不得不给你这个糖果,因为你问的很好,接好,不错,抱歉,对不起,我以为你接到了,我带错了眼镜而且,我意识到你没带错,所以我会待会再讲。
Let's bind z eh let's bind z to the-- f if I could type it would help-- say, f of 3. OK?
让我们给z赋值--如果我能打字就好了-,比方说?
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
And I guarantee you if you do those three things throughout the course that you'll do well in the course and I've said this almost every time I've given the course and nobody has ever told me that I'm wrong.
如果你们做到了这三点,我保证你们会在这门课中取得好成绩,每次开课前我都会这么给学生说,从来没有人告诉我这个说法有问题
Some of you, unfortunately, won't do very good jobs at the beginning... and my TAs, I'll encourage them to be prepared to give Ds.
其中有些人,很遗憾,在开始时表现不会很好。,我会鼓励我的助教们做好给D的准备。
All right, having said that, let's do some examples. I'm going to show you a sequence of algorithms, they're mostly simple algorithms, that's OK.
好,让我们开始看例子吧,我将会给大家讲,一系列的算法,这些都是挺简单的算法。
OK, now, if I actually do this, and I'm going to show you the example, I just, what did I type over there, I got p was a c point.
传入了其他的参数,好,现在,如果我,实际上要做这个的话,我要给大家看个例子。
Let me give you, I'm going to create, q a polar point, I'm going to call it q, and we'll give it some random values.
让我给大家讲解下,我要去创建,一个极坐标点,然后我会去命名它为,然后我给它赋一些随机的值,好,现在我想知道。
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.
好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是当我想要调试代码的时候。
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
Work parametrically, because I can grade easily.
用参量形式,因为这样我好给分。
应用推荐