标签:print 多个 并行迭代 too for 迭代 tuple 对象 lis
并行迭代 zip
for a,b,c in zip(list,list,tuple,list):
print a,b,c
串行迭代 itertools.chain
a = [1,2,3,4,5]
b = [2,3,4,5,6]
for x in chain(a,b):
print x
标签:print 多个 并行迭代 too for 迭代 tuple 对象 lis
原文地址:https://www.cnblogs.com/pxfb/p/9270616.html