Optional Tuple Return Types 返回类型 ; 可选元组返回类型
The collection of objects can be any Python container type, including the tuple, string, and list types discussed in earlier articles.
对象集合可以是任何 Python 容器类型,包括前面文章中讨论的 tuple、string 和 list 类型。
You can use the for loop with any Python object that provides an iterator, including the built-in sequence types such as the tuple, string, and list.
可以将for循环与提供迭代器的任何Python对象结合使用,这些对象包括tuple、string和list等内置序列类型。
The rest of this article discusses the tuple type, which serves to introduce many of the fundamental concepts related to creating and using container types in Python.
本文的其余部分讨论了tuple类型,它用于引入许多与创建和使用Python中的容器类型有关的基本概念。
应用推荐