dubingyu506 / text

0 stars 0 forks source link

test #1

Open dubingyu506 opened 4 years ago

dubingyu506 commented 4 years ago

motorcycles = [] motorcycles.append ('honda') motorcycles.append ('yamaha') motorcycles.append ('suzuki') motorcycles.append ('duceti') print (motorcycles)

dubingyu506 commented 4 years ago

把元素写入空表

motorcycles = [] motorcycles.append ('honda') motorcycles.append ('yamaha') motorcycles.append ('suzuki') motorcycles.append ('duceti') print (motorcycles)

dubingyu506 commented 4 years ago

删除列表的元素

motorcycles = ['honda','yamaha','suzuki'] print (motorcycles) del motorcycles [1] print (motorcycles)