Python如何在列表末尾追加项目?#Python2022-05-04 16:08分类:Python 0 条评论 请先 登录 后评论 默认排序 时间排序 1 个回答|283 次阅读 2022-05-04 16:09 Coco老师 - 官方公众号:青少儿编程学习网 擅长:编程教育 • 网站:https://kidscodes.cn/若要在列表的末尾添加项目,可使用 append() 方法:使用append()方法追加项目:fruitlist = ["apple", "banana", "cherry"]fruitlist.append("orange")print(fruitlist)执行结果:['apple', 'banana', 'cherry', 'orange'] 请先 登录 后评论