Bootstrap

append()函数

作用:在列表末尾添加一个元素

a = [1,2,3]
a.append(0)
print(a)

 输出结果为:

a = [1,2,3,0]

;