def fab(n): a, b = 0, 1 while n: yield b a, b = b, a+b n -= 1



本文首发于python黑洞网,博客园同步更新
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄