标签:pytho 推导 class highlight 输出 生成 ret def python
def add(n, i): return n+i def test(): for i in range(4): yield i g = test() for n in [1, 10, 5]: g = (add(n, i) for i in g)
标签:pytho 推导 class highlight 输出 生成 ret def python
原文地址:https://www.cnblogs.com/hchan/p/12989060.html