Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在导入从 python.org 安装的异步文件包。但是当我导入它时它显示
“语法错误:无效语法”
我的 pycharm 说在异步之后需要在“异步”和“'def'或'with'或'for'之前的标识符。我该怎么办?代码如下:
from . import async, constants, exceptions, utils
如果有人帮助我,我将非常感激。
关键字async用于定义协程
async
单击此处阅读有关协程和任务的信息
我建议将您的async模块重命名为不同的名称,然后使用新名称导入模块