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
上一篇:winform控件


下一篇:Episode 388: Testing vs Monitoring