很多情况下,不同种类的序列(字符串、列表和元组)是可以交换使用的。那么该如何选择用哪种序列呢?
In many contexts, the different kinds of sequences (strings, lists and tuples) can be used interchangeably. So how should you choose one over the others?
当然,很少有 Python 程序员希望使用上面的诸如列表、元组和字典等日益复杂的数据结构。
Of course, few Python programmers want to work with increasingly complex forests of data structures like the lists, tuples, and dictionaries above.
与可以包含不同类型元素的列表、元组和词典不同的是,Numarray数组只能包含同一类型的数据。
In contrast to lists, tuples, and dictionaries, which may contain heterogeneous elements, Numarray arrays contain only elements of a homogeneous data type.
应用推荐