Everfighting
5/4/2017 - 5:35 AM

itertools.chain的用法

itertools.chain的用法

import itertools

for i in itertools.chain([1, 2, 3], ['a', 'b', 'c']):
    print(i,end=" ")
 
# 1 2 3 a b c