在Python中,可以使用"+"运算符来合并多个列表。以下是几种常用的方法:
使用"+"运算符:list1 = [1, 2, 3]list2 = ['a', 'b', 'c']merged_list = list1 + list2使用extend()方法:list1 = [1, 2, 3]list2 = ['a', 'b', 'c']list1.extend(list2)使用append()方法和循环:list1 = [1, 2, 3]list2 = ['a', 'b', 'c']for item in list2: list1.append(item)无论使用哪种方法,上述代码的输出结果都是 [1, 2, 3, 'a', 'b', 'c'],即将两个列表合并成一个新的列表。

