a = [1,2,3]
b = [4,5,6]
# 无返回值,错误写法 ==》a=a.append(b)
a.append(b)
print(a)
# [1, 2, 3, [4, 5, 6]]
a.extend(b)
print(a)
# [1, 2, 3, [4, 5, 6], 4, 5, 6]
a = [1,2,3]
b = [4,5,6]
# 无返回值,错误写法 ==》a=a.append(b)
a.append(b)
print(a)
# [1, 2, 3, [4, 5, 6]]
a.extend(b)
print(a)
# [1, 2, 3, [4, 5, 6], 4, 5, 6]