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

cars.remove("Volvo")

print(cars)
运行结果: