So it doesn't matter how big the dictionary is, you can instantaneously retrieve the value associated with the key. Extremely powerful.
因为你可以在线性时间,内得到想要的键对应的值,这太强大了。
And I think too, a really good exercise if you wanted to do is, if you have a dictionary,
我也认为,如果你想练习,如果你有字典的话,比较好的练习
It could be information-oriented, it could be a dialogue, it could be some kind of tools, a request function or dictionary or computing request.
可以是信息导向的,也可以是对话,或者是一种工具,一种对功能的需求,比如对字典,计算的需求。
When you think about an int or a float or a dictionary or a list, you knew that there were functions that operated on them.
当你想到整型,浮点型,或者链表时,你知道可以用函数去处理他们,但是当你传递一个参数,例如链表。
But we said earlier that, you know, we're going to get - to the point where we want to have a lot of pieces of -- a lot of variables in memory, maybe 140,000 dictionary words for some future peace set, but we don't want to enumerate line by line by line 140,000 variables.
但是我们之前说过,你们知道的,我们将获得,有很多块--很多变量的内存的指针-,可能有140,000个单词的集合,但是我们不想一行行地列举,140,000行变量。
Of course, as you have guessed, the good reader is the one who has imagination, memory, a dictionary and some artistic sense, which sense I propose to develop in myself and others whenever I have the chance.
当然,就像你们猜到的那样,好读者拥有想像力、好记性、,一本字典和几分艺术感,我建议一有机会,就进行自我及他人的艺术感培养。
then maybe everyday go through the dictionary
可能就是每天翻看字典,
They take those descriptions and the scientist that is known and they try to design new things, and so if you look at a dictionary it has words like this, that you're designing things or another way to say that is that you're trying to apply science, you're looking at applications.
他们利用已知的,科学原理和描述,来设计新东西,因此,如果你查字典时看到这样的词条,设计产品或者换句话说,试图应用科学原理,那么你看的这个词就是应用
And the memo will be a dictionary that maps me from a number to Fib of that number.
这个memo就是我从一个fib数,到另一个fibs数的记录字典。
The reader should have a dictionary."
读者要有本字典“
What you can do is you can iterate keys, which gives you the keys in the dictionary, and then you can choose them, but there's no guarantee in the order in which you get keys.
你能做的就是迭代得到键,这样就可以得到字典中,所有的键并进行选择,但是键的顺序,是没有保证的。
Remember the way dictionary works, this is the key. Is the key of a value.
记住这个字典的工作原理,这是关键,它是值的关键。
Here I'll initiate the memo to be 0, or to be empty, rather, the dictionary.
在这里我会将memo初始化为,或者为空,作为记录字典。
When we get to the spell checking, the dictionary assignment, when you're actually manipulating text files, maybe writing some output, these lower level details that actually empower you to solve problems properly.
当你检查拼写时,字典查询,当你熟练运用这些文本文件时,可能是写一些输出文本,这些小细节,恐怕可以帮助你合理解决问题。
When you copy a dictionary, for example.
比方说当你复制一个代码词典的时候。
应用推荐