通过run_in_executor方法来新建一个线程来执行耗时函数。 注意:functools.partial调用的参数应与目标函数一致 """ loop = asyncio.get_event_loop()
確定! 回上一頁