As discussed, the tuple type is an immutable heterogeneous container.
如文中所述,tuple类型是不可变的异构容器。
The Python tuple type behaves in a similar manner as a bag in that it can hold different types of objects.
Python的tuple类型与口袋类似,它可以存放不同类型的对象。
The tuple type is like a bag into which you throw everything you might need before you head out the door.
tuple类型像一个口袋,在出门前可以把所需的任何东西一股脑地放在里面。
For example, the tuple type, while less flexible because it's immutable, is generally much faster than the list type when used in identical situations.
例如,tuple类型,尽管它是不可变的,灵活性较差,但在同一环境中使用时,它们通常比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中的容器类型有关的基本概念。
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中的容器类型有关的基本概念。
应用推荐