When I call or invoke a function, think of it as creating a local table.
当我调用一个函数时,想象一下它是在这里创建了一个局部表。
I decided to come here because I did research here as a high school student,
我决定来这儿是因为当我还是高中生时就在这里做研究,
So now, henceforth, when you say, to declare a function, I am declaring a function here but down here am I quote unquote defining it or implementing it.
从此以后,当你说,声明一个函数,我在这里声明了一个函数,但是到这里我定义它或执行它。
The second question I want to ask is what's the base case? When do I get down to a problem that's small enough that it's basically trivial to solve? Here it was lists of size one. I could have stopped at lists of size two right. That's an easy comparison.
第二个问题是什么是基础条件?,我要将问题分解到何时才使得问题,小到可以解决的基本问题?,这里是当列表的长度为1有时候,我也可以在长度为2的时候停止分解,那是一个非常简单的对比。
I think I had managed to get to this point here where I show what happens when the cation, here sodium, is in contact with the anion here, chlorine.
我想我能回到这儿,当阳离子,在这里是钠,和阴离子,氯离子接触会发生什么。
Good. The question was, "When I talk about creativity here, am I trying to build in some appeal to the feeling that we may have when we're being creative?"
这个问题是,当我在这里讨论创造力的时候,我是不是想引入那些"当我们有创造力时,我们可能会有什么样的感受"的观点
They divide by n-1 to make it an unbiased estimator of the population variance, but I'm just going to show it in a simple way here.
当除以n-1表示的是对总体的,无偏估计,我在这里只是说的简单一点
So what I want to point out when you're kind of looking at these numbers here, what the significance is, look at that huge difference between what the ionization energies are for what we call those valence electrons, -- those outer shell electrons, those are core electrons there.
我在这里想要指出的是,当大家在看这些数字的时候,最重要的是,要看到这些,巨大的差异,看到所谓价电子,即外层电子的电离能与,1,s,轨道,电离能之间的巨大差异。
Then when I create the stock, here, I can pass it in, pass in d 1.
然后当我在这里创建stock的时候,我可以给它赋值,把d1赋给它。
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
I then assign thankful true, if so, but notice this little trick: -- I'm going to keep doing this while I am bang thankful -- bang exclamation point means "not," so this is shorthand, sort of clever elegant notation for "while I'm not thankful, keep doing this."
然后我给thankful赋true值,如果是这样,注意这里有个小技巧:,我将一直这样做,当我用满意时-,感叹号在这里的意思是“非“,这是一个可速记的,有几分机灵优雅的符号,用来说明:“当我不满意,保持这样做“
应用推荐