摘要: def g1(iterable): yield iterable def g2(iterable): yield from iterable for value in g1(range(10)): print(value) for value in g2(range(10)): print(valu 阅读全文
posted @ 2015-11-30 18:21 Jeff_blog 阅读(106) 评论(0) 推荐(0) 编辑