源代码
cars = ["Porsche", "Volvo", "BMW"] cars.remove("Volvo") print(cars)
运行结果