示例代码
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
2024-03-04 22:26:12
示例代码
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