我们可以使用这两个函数来同步运行任何异步函数: import asyncio from asgiref.sync import async_to_sync asyncio.run(asyncio.sleep(1)) ...
確定! 回上一頁