摘要: 环境 Windows7x64 python3.6 先来看个例子,模仿asyncio来自己实现的模拟耗时操作 例1 import types import select import time import socket import functools class Future: def __ini 阅读全文
posted @ 2019-07-08 22:38 naralv 阅读(5860) 评论(3) 推荐(1) 编辑
摘要: 环境 Windows7x64 python3.6 先来看一下一个简单的例子 例1: async def foo(): print('enter foo ...') await bar() print('exit foo ...') async def bar(): print('enter bar 阅读全文
posted @ 2019-07-08 17:32 naralv 阅读(430) 评论(0) 推荐(0) 编辑