And then the last thing I want to do, is just decide, you know, what do I do when I'm done.
决定,你知道的,当我完成循环后去做什么。
I chose English Literature because when I started off a university, I didn't know what it was I wanted to do.
我选英语文学是因为当我刚上大学的时候,我不知道自己到底想做什么。
Logically looks like I'm safe because I know what I'm doing here.
逻辑上看起来是安全的,因为我知道在那里我做了什么。
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个数字,我创建了一个这么长的列表,并且我只是简单的标志这些东西。
Well, I actually did not know what I wanted to do coming into Berkeley.
嗯,实际上,来伯克利的时候,我并不知道自己想做什么。
Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.
比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。
应用推荐