a = [1,2,3] b = [4,5,6] # 将两个列表合并 # append方法是不行的 # a.append(b) # print(a) # [1, 2, 3, [4, 5, 6]] # 我们可以用extend # a.extend(b) # print(a) # c = [1,2,3,4] # d = ['hello',[1,2,3,4]] # c.extend(d) # print(c) # 还有另一种方法就是 + new_list = a + b print(new_list)…