方法二:通过asyncio 的ensure_future() 方法, 将coroutine封装成task对象,这样可以不借助于loop来定义,. #即使没有声明loop也可以提前定义好task对象.
確定! 回上一頁