摘要: def foo(): print("starting...") while True: res = yield 4 print("res:",res) g = foo() print(next(g)) print("-" * 20) print(next(g)) #输出结果 starting... 阅读全文
posted @ 2022-01-19 14:34 lubvi的自习室 阅读(582) 评论(0) 推荐(0)