看官网文档,看到下面两句话理解不了,思否大神请指点
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也可以放不同种类的数据
最后感谢浏览与回答
只是显示了英语的博大精深和词汇量丰富罢了,List和Tuple都可以装不同类型的数据