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.
可以是信息导向的,也可以是对话,或者是一种工具,一种对功能的需求,比如对字典,计算的需求。
And I think too, a really good exercise if you wanted to do is, if you have a dictionary,
我也认为,如果你想练习,如果你有字典的话,比较好的练习
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.
当你检查拼写时,字典查询,当你熟练运用这些文本文件时,可能是写一些输出文本,这些小细节,恐怕可以帮助你合理解决问题。
I can do lots of things with these, and you'll see that as we get to future assignments we'll make heavy use of dictionaries.
我们可以利用这一点来做很多操作,而且以后我们做作业的时候,我们会用到很多字典相关的东西。
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.
当然,就像你们猜到的那样,好读者拥有想像力、好记性、,一本字典和几分艺术感,我建议一有机会,就进行自我及他人的艺术感培养。
At least that's what the OED tells us; the only example that they can find of the word scrannel is in Milton's Lycidas.
至少这是牛津英语字典告诉我们的;,他们找到的唯一一个例证,就是在里的这个。
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数的记录字典。
Dictionaries are implemented using a magic technique called hashing, which we'll look at a little bit later in the term, which allows us to retrieve keys in constant time.
散列法的内容,此方法可以让我们在线性,时间内检索到键,因此字典的大小并不重要了。
I get a key error. Because, remember, these things are not ordered.
程序会返回一个键错误,因此,记住字典里的元素是无序的。
That's why it's using set braces, so don't worry about that.
这也是为什么字典用了集合的括号的原因,因此对这一点不用担心。
The reader should have a dictionary."
读者要有本字典“
Not in the next problems set but in the problem set after that, we'll be exploiting that facility of dictionaries. All right.
好,下一个问题是,我们如何来利用,字典的便利性,好。
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.
记住这个字典的工作原理,这是关键,它是值的关键。
Now you might wonder, why do we have dictionaries?
现在你们可能会有疑惑了,我们用字典来干什么呢?
Because the order of this doesn't matter.
因为字典里元素的顺序无关紧要。
Here I'll initiate the memo to be 0, or to be empty, rather, the dictionary.
在这里我会将memo初始化为,或者为空,作为记录字典。
Because if you did what I suggested with the list, the time to look up the key would be linear in the length of the list. You'd have to look at each element until you found the key.
字典是用一种很神奇的,叫做散列法的算法,来实现的,后面我们将,会学到一点关于。
应用推荐