📅  最后修改于: 2022-03-11 14:47:20.478000             🧑  作者: Mango
# list append vs extend
e = [1,2,3]
e.append(["a",[8]])
print(e)
# [1, 2, 3, ['a', [8]]]
u = [1,2,3]
u.extend(["a",[8]])
print(u)
# [1, 2, 3, 'a', [8]]