Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.
正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回。
And one of the ways you can make a program crash, intentionally or not, is to essentially use up too much memory or call too many functions and what happens is, bam, one hits the other and bad things happen.
其中一个方式能使你的程序崩溃掉,有意或无意的,它本质上使用了太多的内存,或者调用了太多的函数,所发生的,崩掉,一个冲突了另一个,然后发生了坏事情。
Again we can look at this in terms of thinking about a picture this way, in terms of drawing the wave function out on an axis.
同样我们可以,用这个图像来考虑,从画轴上的波函数来考虑。
And the thing I wanted point out is, we've got this global variable number of calls. Which is there not because Fibonacci needs it but just for pedagogical reasons, so that we can keep track of how much work this thing is doing.
要指出的是我们已经,调用了几次这个全局变量,这不是因为斐波那契数列,需要调用它而只是,因为教学上的需要,以便我们可以知道,这个函数做了多少事情。
Well, if you want to call a function, it's like putting another tray on that stack of trays and that tray represents a chunk of memory that, that function can use.
嗯,如果你想调用一个函数,这就像把一个托盘放到另一个托盘上,托盘代表一块,函数可以使用的内存。
So it's very much the name of functions that denote or connote their behavior.
所以很大程度上函数的名字指明了,或暗示了它们的功能。
But very soon will you find that if you're writing programs with lots and lots of functions, and some might call these, and these might call these, you can come up very soon with scenarios where you can not order them top to bottom, because everything is comingled, and there's a lot of cross talk among all of your functions.
但是不久后你们会发现你们写的程序中,有很多很多的函数,有的函数调用这些函数,这些函数又调用另外的函数,你不能用脚本,把它们从上到下排序,因为所有函数相互混合,在你的函数中也有很多交叉。
So again, if we think of a graph of the wave function, we had the wave function is at its highest amplitude when it's lined up with the nucleus, and then as we got further away from the nucleus, the amplitude of the wave function ends up tapering off until it never hits zero exactly, but it goes down very low.
同样,如果我们想象一幅波函数的图,波函数在原子核的位置上,有着最高的振幅,随着与原子核距离变远,波函数振幅逐渐变小直到,它永远不会到零,但它会变得很小。
And you can look up documentation for various functions.
你可以看到文档上,有各种各样的函数。
now we're not just talking about 1 photon, 1/2 let's say we shoot them all at the same time at our metal, each of them having some energy that's let's say 1/2 the work function. So, just to take a little bit of an informal survey, who thinks here that we will have an electron that is ejected in this case?
我们现在不仅仅讨论一个光子,它们所具有的能量是功函数的,我们在同一时刻把它们打到金属上,我们做一个不太正式的调查,谁认为这种情况下,一个电子会被打出?
应用推荐