Now I got one just simple thing, and I simply have isolated that module inside of that function.What about abstraction?
而现在我只要做一件简单的事,那就是我只需把这个模块,加到函数中去?
We've seen so far that we can have a neutral plus neutral sodium plus chlorine goes to cation plus anion.
到目前为止,我们得到了一个不带电的加一个不带电的,即钠加上氯,得到阳离子加阴离子。
On 231, just to add to this catalog--we have murdered, abandoned, neglected children--we also have police brutality.
在231页,就是为了加些内容到这个目录中,我们看到了谋杀,抛弃,忽视儿童,我们还读到了警察的残忍,让我看一下231页。
Okay, have to stop there--might add a word or two-- but on Thursday we turn, I'm afraid with a certain awkwardness; I wish there were an intervening weekend, to Freud and Peter Brooks.
好的,必须在此停下了,再加一两句-,到周四我们将会,恐怕有点尴尬;,我希望会有一个周末,留给弗洛伊德和彼得,布鲁克斯。
It's going to take this list and add to it something else.
这个代码有什么作用呢?,我将会把一些东西加到这个数组里面去。
I talk about this in the book you have, Irrational Exuberance, and I'll let you read that and not summarize it here.
非理性繁荣》这本书有提到过,以后你们会读到,在此不加赘述
Let me add, let me make it 17 people so we have an odd number, so go and sit in that row.
我再加一个人这样就是奇数17个人,请到那行中
So we need to add those 2 valence electrons left as lone pair electrons in our structure.
因此我们需要将这两个剩下的价电子,作为孤对电子加到我们的结构中。
So he curses existence, curses God at having made him so impotent that he can't change the fact that two plus two equals four.
所以他诅咒生存,诅咒上帝让他如此无能,无能到无法改变二加二等于四的事实。
So, you picked up some speed, then you're coasting along at a steady speed.
所以当你加到一定速度,然后你便匀速上升的时候
What happens if you add them to water?
把它们加到水里会发生什么呢
This is the pulse of music and music theorists ever since the late fifteenth century from music theory Francinus Gafurius on we could go all the way back then have said that the pulse in music is basically at the same tempo as the human pulse which comes out to be about oh, we'll say seventy-two beats if you will, pulses, per minute.
这是音乐的脉搏,从十五世纪晚期到现在的音乐理论家们,像弗朗西斯·加福瑞,我们回到那个年代,那时就曾说过,音乐的律动,和人类的脉搏节奏基本一致,就是说相当于,我们说如果是你的脉搏的话,每分钟七十二下左右
Step three to four isothermal compression, w2 delta u is going to be q2 plus w2.
第三步,到四点的等温压缩,Δu等于q2加。
I, somehow if, I want to walk through some sequence of data structures, gathering up or doing the same thing, adding ages in until I get a total age and then divide by the number faculty.
我想,以某种方法,来遍历,一些数据结构,把它们相同的属性加到一起,就是一直的把年龄加到一起一直到,得到了一个年龄总数,然后除以员工的数目。
Well, we'll just add those into our pantheon of gods too."
也加到我们的众神里去吧“
This equation is begging you to be added to this equation.
把这个方程加到这个方程上去
And this just is another list, I mainly wanted you to have it in your notes of diseases that are important around the world, for which there are very active programs to develop either vaccines or more effective vaccines.
这是另一个表,我希望你们做笔记时把它加到,世界上这些严重的传染疾病上,因为现在有一些项目致力于开发,针对这些疾病的疫苗或者改进式疫苗
And so I'm going to go back to this idea of a class, and let's build the first of these, and that is shown right here on this piece of your handout.
你把半径加到一起,你不会把角度加到一起,你需要再笛卡尔坐标下,进行这个操作,那么我这里在讲的就是。
So I've appended this whole object.
因此我把整个对象都加到空数组里面去了。
And when I do that, I'll append it to history.
当我这么做的时候,我同时会把它加到历史中去。
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.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
All right? And if you want to do other things, whoops, sorry-- and add them together, we will get out, again, a concatenation of that string. And these will, we'll let you work through the variations, but these are the simple expressions we can use.
对不对?如果你想要进行一些别的操作,哦,对不起-是加到一块,然后结果值也是,两个字符串的链接,这些会,我们会让大家慢慢学习变量,但是这些是我们能用的最简单的表达式。
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.
这意味着从第一个字符开始,我要对他们进行一些操作,我要去做什么呢?我要取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。
Because of this my mother used to make Jell-o that had fruit suspended in it, and the fruit doesn't sink to the bottom like you'd expect it to sink through water, but it stays suspended inside.
正因为如此,当我母亲以前做,那种加水果的果冻的时候,水果并不会沉到果冻底部来,你以为它会像在水里那样,但水果是悬在果冻里的
first So what do I do? I find the midpoint by taking last minus first, divide by 2, and add to start.
要怎么做?我把last减去,除以二,加到起点上去。
And as we add constructs to the language, we're going to talk about.
当我们开始加指令的时候,我们会谈论到这一点。
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.
加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。
应用推荐