下一节:Python 简介 Python 列表 append() 方法 Python 列表/数组方法实例向 fruits 列表添加元素: fruits = ['apple', 'banana', 'cherry'] fruits.append("orange") 运行实例定义和用法append() 方法向列表末尾追加元素。语法list.append(element)参数值参数描述element必需。任何类型(字符串、数字、对象等)的元素。更多实例实例向列表添加一个列表: a = ["apple", "banana", "cherry"] b = ["Porsche", "BMW", "Volvo"] a.append(b) 运行实例Python 列表/数组方法 下一节:Python 简介