从python 3.5(参见pep 492)开始,coroutines有了新的语法。现在可以用 async def 定义协同程序,并使用 await 表达式等待它。它不仅写得更短,而且更清楚 ...
確定! 回上一頁