随笔-
42
文章-
0
评论-
0
motorcycles = ['honda', 'yamaha' ,'suzuki']
motorcycles.insert(0,"ducati")print(motorcycles)
输出为:
['ducati', 'honda', 'yamaha', 'suzuki']
2:
motorcycles =[]
motorcycles.append("honda")
motorcycles.append("yamaha")
motorcycles.append("suzuki")print(motorcycles)
输出为:
['honda', 'yamaha', 'suzuki']
posted @
2019-04-17 14:21
Johnson蚂蚁
阅读(4188)
评论(0)
编辑
收藏
Copyright © 2020 Johnson蚂蚁
Powered by .NET 5.0.0 on Kubernetes