chain模块将两个列表合并

示例代码

from itertools import chain


v1 = [11,22,33]
v2 = ['a','b','c']

for item in chain(v1,v2):
    print(item)

打印输出

11
22
33
a
b
c
原文地址:https://www.cnblogs.com/supery007/p/8521061.html