... 可变长度实参元组 Variable-length argument tuples 列表和元组 Lists and tuples 字典和元组 Dictionaries and tuples ...
基于1个网页-相关网页
Lists and tuples are similar, but whereas a tuple can only be used in a comparison, lists allow a wider variety of manipulation operations to be performed.
列表与元组相似,但是元组只能在比较中使用,而列表允许执行的操作更多。
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?
很多情况下,不同种类的序列(字符串、列表和元组)是可以交换使用的。那么该如何选择用哪种序列呢?
Of course, few Python programmers want to work with increasingly complex forests of data structures like the lists, tuples, and dictionaries above.
当然,很少有 Python 程序员希望使用上面的诸如列表、元组和字典等日益复杂的数据结构。
应用推荐