Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> Python

Homogeneous list trong Python list là gì?

Không có khái niệm "homogeneous list" bắt buộc trong Python. Docs gợi ý dùng list cho homogeneous data, nhưng hoàn toàn dùng cho heterogeneous data cũng được.

"Lists are mutable sequences, typically used to store collections of homogeneous items..."