把@asyncio.coroutine替換為async; 把yield from替換為await。 async def hello(): print("Hello world!") r = await asyncio.sleep(1) ...
確定! 回上一頁