摘要: # 面试题 def demo(): for i in range(4): yield i g=demo() g1=(i for i in g) g2=(i for i in g1) print(list(g1)) print(list(g2)) 结果: [0, 1, 2, 3] [] def add(n,i): return n+i def te... 阅读全文
posted @ 2018-04-25 20:48 飞奔的小水牛 阅读(119) 评论(0) 推荐(0) 编辑