motorcycles = ["honda", "yamaha", "suzuki"] print(motorcycles) del motorcycles[1] print(motorcycles)
输出为:
[‘honda‘, ‘yamaha‘, ‘suzuki‘] [‘honda‘, ‘suzuki‘]
原文地址:https://www.cnblogs.com/zhouxiin/p/10727392.html
时间: 2024-10-03 23:26:47
motorcycles = ["honda", "yamaha", "suzuki"] print(motorcycles) del motorcycles[1] print(motorcycles)
输出为:
[‘honda‘, ‘yamaha‘, ‘suzuki‘] [‘honda‘, ‘suzuki‘]
原文地址:https://www.cnblogs.com/zhouxiin/p/10727392.html