选择频道搜索
Python中可以使用"+"操作符将两个列表拼接在一起。示例代码如下:
list1 = [1, 2, 3]list2 = [4, 5, 6]result = list1 + list2print(result)
输出结果为:
[1, 2, 3, 4, 5, 6]