摘要: itertools使用 chain 给出一组可迭代序列,将所有序列链起来并迭代 from itertools import chain for item in chain(['a', 'b', 'c'], ['d', 'e'], ['f', 'g']): print item print: a b 阅读全文
posted @ 2016-12-25 14:11 leesea 阅读(129) 评论(0) 推荐(0)