安装或设置

为了安装 asyncio:

pip install asyncio

请注意,python asyncio 需要 Python 3.3 或更高版本。

自 Python 3.4 以来,该模块成为 Python 标准库的一部分。