motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles) motorcycles[0] = 'ducati'
print(motorcycles)
输出为:
['honda', 'yamaha', 'suzuki']
['ducati', 'yamaha', 'suzuki']
2024-03-24 17:57:04
motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles) motorcycles[0] = 'ducati'
print(motorcycles)
输出为:
['honda', 'yamaha', 'suzuki']
['ducati', 'yamaha', 'suzuki']