标签:
def hello(a): if not a: yield None for i in a: yield i while True: print("true") for i in a: print("true after") yield i
Python 一个无限 重复生成器的实现
原文地址:http://my.oschina.net/innovation/blog/359581