The key thing to notice is, I now have the ability to create iterations, which extends well I can do.
要注意的关键点是,我们现在已经学会如何去创建迭代了,这大大扩展了我们能做的事情的范围。
There's a real sense, I think, in which Milton wanted to re-create all of Western culture or to re-create all of Western culture in his own image.
我认为,米尔顿想要完全重建西方文化,或者说是按他自身的形象重建西方文化,是有切实意义的。
fib So I'll create Fib 1, fib1 which has the same arguments as Fib.
所以我将会创建和,有相同参数的。
And then I'll create this function, d1 this distribution d 1, which will, whenever I call it, give me a random, a uniformly selected value between minus and plus volatility.
然后我会创建这个函数,这个概率分布,每次我调用这个函数的时候,他会给我返回一个随机的,按照均匀分布,从正负浮动值之间选择的值。
So, what's the idea? If I know what my hash function does, it maps, in this case characters into a range zero to 256, which is zero to 255, I create a list that long, and I simply mark things.
我知道我的哈希函数做什么,在这个例子中,它将字母,映射成0到255的256个数字,我创建了一个这么长的列表,并且我只是简单的标志这些东西。
What we're really getting at is the idea of saying I want to have a way of grouping together information into units that make sense. So I can go back to one of those topics we had at the beginning, which is the idea of abstraction, that I can create one of those units as a simple entity, bury away the details and write really modular code.
组合成为有意义的单元,那么这就让我们回到,一开始讲的话题之一了,这就是抽象的概念,也就是我可以以一个简单的,实体的形式创建这样的一个单元,把具体实现隐藏然后写一些,真正模块化的代码,我们在以后的课程中。
应用推荐