实际使用时候 没理解 发生了错误 还有insert
https://blog.csdn.net/dagongrenbs/article/details/124602219
https://www.cainiaojc.com/python/python-methods-list-append.html
list1 = ['Google', 'Runoob', 'Taobao']
list1.append('Baidu')
print ("更新后的列表 : ", list1)
更新后的列表 : ['Google', 'Runoob', 'Taobao', 'Baidu']
# 动物列表
animals = ['猫', '狗', '兔子']
# 野生动物名单
wild_animals = ['老虎', '狐狸']
# 将野生动物列表添加到动物列表中
animals.append(wild_animals)
print('新的动物列表: ', animals)
新的动物列表: ['猫', '狗', '兔子', ['老虎', '狐狸']]
aList = [123, 'xyz', 'zara', 'abc', 123];
bList = [2009, 'manni'];
aList.extend(bList)
print "Extended List : ", aList ;
Extended List : [123, ‘xyz’, ‘zara’, ‘abc’, 123, 2009, ‘manni’]
https://m.runoob.com/python3/python-copy-list.html