ensure_future -仅创建 Task 并立即返回。您应该等待创建的任务来获得其结果(包括引发异常的情况): import asyncio async def test(): await asyncio.sleep(0) raise ...
確定! 回上一頁