代码示例:(标识:python_array_6)
python_array_6.py
cars = ["Porsche", "Volvo", "BMW"]

cars.append("Audi")

print(cars)
运行结果: