append() 方法用于在列表末尾添加新的对象。它的语法如下:list.append(obj) 例如:list = [1, 2, 3] list.append(4) print(list) 输出:[1, 2, 3, 4]