标签:while size 结果 __next__ def col code style yield
1 def f1(n): 2 m=n 3 while True: 4 m+=1 5 yield m 6 a=f1(5) 7 print(a.__next__())
结果:6
__next__()
原文地址:https://www.cnblogs.com/lmh001/p/9859072.html