The previous chapter introduced lists, which are mutable sequences commonly used for storing homogeneous data. Tuples are immutable sequences. This means like lists, they support item access using integer indices. They also support membership checks, iterations, and length checks since all sequences are a superset of collections.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Tuples

  • Adarsh Divakaran

摘要

The previous chapter introduced lists, which are mutable sequences commonly used for storing homogeneous data. Tuples are immutable sequences. This means like lists, they support item access using integer indices. They also support membership checks, iterations, and length checks since all sequences are a superset of collections.