若要在列表的末尾添加项目,可使用 append() 方法:使用append()方法追加项目:fruitlist = ["apple", "banana", "cherry"]fruitlist.append("orange")print(fruitlist)执行结果:['apple', 'banana', 'cherry', 'orange']