Using dictionaries is a technical skill in itself.
使用词典本身就是一种技巧。
Extracting information from text using dictionaries: An example.
使用字典从文本中提取信息:示例。
Rewriting the function using dictionaries is trivially easy, as Listing 7 demonstrates.
使用字典来重写函数是非常简单的,如清单7所示。
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.
散列法的内容,此方法可以让我们在线性,时间内检索到键,因此字典的大小并不重要了。
应用推荐