代码示例:(标识:python_list_change)
python_list_change.py
thislist = ["apple", "banana", "cherry"]
thislist[1] = "mango"
print(thislist)
运行结果: