motorcycles = ["honda", "yamaha", "suzuki"]
print(motorcycles) del motorcycles[1]
print(motorcycles)
输出为:
['honda', 'yamaha', 'suzuki']
['honda', 'suzuki']
motorcycles = ["honda", "yamaha", "suzuki"]
print(motorcycles) del motorcycles[1]
print(motorcycles)
输出为:
['honda', 'yamaha', 'suzuki']
['honda', 'suzuki']