Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python

Homogeneous List ใน Python List คืออะไร

ไม่มีสิ่งที่เรียกว่า homogeneous list ใน Python เอกสาร Python เพียงแนะนำให้ใช้ list สำหรับ homogeneous data อ้างอิงจากเอกสาร:

Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).

คุณสามารถใช้ list สำหรับ heterogeneous data ได้ดีเช่นกัน