小编cal*_*evy的帖子

新的python异步和等待关键字

有人可以解释PEP 0492中概述的新语法:使用异步和等待语法的协程吗?什么是类似的东西之间的主要区别

def do_nothing():
    return
Run Code Online (Sandbox Code Playgroud)

async def do_nothing():
    return
Run Code Online (Sandbox Code Playgroud)

python syntax asynchronous async-await

2
推荐指数
1
解决办法
3130
查看次数

标签 统计

async-await ×1

asynchronous ×1

python ×1

syntax ×1