面向初学者的 Python(数据结构:Python 中的列表和元组)
# Creating a listfruits = ["apple", "banana", "cherry"]numbers = [1, 2, 3, 4, 5]mixed = ["apple", 2, 3.5, True]print(fruits) # Out
# Creating a listfruits = ["apple", "banana", "cherry"]numbers = [1, 2, 3, 4, 5]mixed = ["apple", 2, 3.5, True]print(fruits) # Out