Python关于 heterogeneous data,homogeneous items的解释

看官网文档,看到下面两句话理解不了,思否大神请指点
List
Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).

Tuples
Tuples are immutable sequences, typically used to store collections of heterogeneous data (such as the 2-tuples produced by the enumerate() built-in)
这里的 heterogeneous data指的是什么样的数据,homogeneous items又指的是什么样的元素,理解成不同成分的数据,和同种类型的数据吗,感觉List也可以放不同种类的数据
最后感谢浏览与回答

阅读 3.7k
1 个回答

只是显示了英语的博大精深和词汇量丰富罢了,List和Tuple都可以装不同类型的数据

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进