测试 #!/usr/bin/env python # coding: utf-8 # In[5]: def func(num): for i in range(num): yield i data = func(10) for _ in func(10): print(data.__next__()) 0 1 2 3 4 5 6 7 8 9 Previous Python3.7下测试单线程,多线程和多协成 Next 第一篇 Windows下安装配置Golang CATALOG FEATURED TAGS Linux Windows Python Docker FRIENDS IntPrt 前端外刊评论 天镶的博客 Luke 的自留地 Ebn's Blog SmdCn's Blog David's Game DHong Say 尹峰以为 解旻的博客