列表:用于存储多个元素,支持修改,如fruits = ["apple", "banana", "cherry"]; fruits.append("orange"); print(fruits[0])。
元组:与列表类似,但不可变,如coordinates = (10.0, 20.0); print(coordinates[0])。
字典:存储键值对,适合存储关联数据,如person = {"name": "Alice", "age": 30, "city": "New York"}; print(person["name"])。