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

cars.pop(1)

print(cars)
运行结果: