摘要: 1 最简单的使用演示: def simple_coroutine(): print('-> coroutine started') x = yield print('-> coroutine received:', x) my_coro = simple_coroutine() my_coro Out[64]: In [65]:next(my_coro) -> coro... 阅读全文
posted @ 2020-01-31 20:26 绿色的麦田 阅读(253) 评论(0) 推荐(0) 编辑