你可以使用 Python 的 extend() 方法将两个列表连接起来。例如:
list1 = [1, 2, 3]
list2 = [4, 5, 6]
list1.extend(list2)
print(list1) # [1, 2, 3, 4, 5, 6]
你可以使用 Python 的 extend() 方法将两个列表连接起来。例如:
list1 = [1, 2, 3]
list2 = [4, 5, 6]
list1.extend(list2)
print(list1) # [1, 2, 3, 4, 5, 6]