在asyncio中可以给Task(Future)添加回调函数,等Task完成后就会自动 ... In : task.add_done_callback(callback) In : await task Result: A Out: 'A'.
確定! 回上一頁