PHP的数组类型可同时支持简单列表和字典或散列,但Python却将这两者分开。
PHP has an array type that doubles as as a simple list and a dictionary or hash; Python separates the two.
因为Python的类型是动态的,且具有简洁的数据结构语法,比如列表和字典,所以neo发现它通常可以减少代码行。
Since Python is dynamic typed and has concise syntax for data structures such as list and dictionary, Neo found it usually results in fewer lines of code.
如果可行,他就可以在几小时之内,用Python整洁的列表和字典等数据结构,以及列表理解(list comprehension)等整洁的函数编程功能来编写这个代码。
If it was possible he could write it within a few hours with Python's neat data structures such as list and dictionary, neat functional programming features such as list comprehension.
在接下来两篇文章中,我们将探讨更强大、更方便的数据结构的应用:有序列表和随机访问字典。
In the next two articles, we'll explore the use of much more powerful and convenient data structures: ordered lists and random-access dictionaries.
ARTSXML字典是一张名称列表,这些名称最初来源于 ARTS 数据模型的逻辑视图的实体和属性名称。
The ARTS XML Dictionary is a list of names initially derived from entity and attribute names of the logical view of the ARTS Data Model.
您可以通过检验 Sphinx-4 “demo”目录中的某些其他程序,或者通过把现有示例修改为使用大型字典文件和扩展语法列表,亲自测试这一点。
You can test this yourself by checking some of the other programs in the Sphinx-4 "demo" directory or by modifying the existing examples to use large dictionary files and expanded grammar lists.
除了filter以外,字典可以使用其它和列表相同的内置函数和方法。
In addition to filter , dictionaries can use several other of the same built-in functions and procedures as lists.
表示中没有使用专门的python类——只使用了元组、字典、列表和字符串(以及保留位置上的None)。
No specialized Python classes are used in the representation — just tuples, dicts, lists, and strings (and None in the reserved position).
当然,很少有Python程序员希望使用上面的诸如列表、元组和字典等日益复杂的数据结构。
Of course, few Python programmers want to work with increasingly complex forests of data structures like the lists, tuples, and dictionaries above.
本章我们要说的是另外一种内置类型,元组,以及列表、字典和元组如何协同工作。
This chapter presents one more built-in type, the tuple, and then shows how lists, dictionaries, and tuples work together.
本章我们要说的是另外一种内置类型,元组,以及列表、字典和元组如何协同工作。
This chapter presents one more built-in type, the tuple, and then shows how lists, dictionaries, and tuples work together.
应用推荐