Python/gloss python change list item

来自菜鸟教程
跳转至:导航、​搜索

<languages />

Python变更清单项目

更改商品价值

更改第二项:

thislist = ["apple", "banana", "cherry"]

thislist[1] = "blackcurrant"

print(thislist)