📜  python合并两个列表交替 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:32.595000             🧑  作者: Mango

代码示例1
a = [1, 3, 5]
b = [2, 4, 6]

c = []
for x, y in zip(a, b):
  c += [x, y]

print(c)
# [1, 2, 3, 4, 5, 6]