Everfighting
9/15/2017 - 3:48 AM

itertools.chain的用法

from itertools import chain
a = [1,2,3,4]
b = ['x','y','z']
for x in chain(a,b):
    print(x)