python3 pip 安装tomorrow模块后进行调用,会报错:
def async(n, base_type, timeout=None):
^ SyntaxError: invalid syntax
查看motorrow.py源码发现,async是python的关键字,这里函数名和关键字冲突,全部换个函数名,如async_th
即可。
python3 pip 安装tomorrow模块后进行调用,会报错:
def async(n, base_type, timeout=None):
^ SyntaxError: invalid syntax
查看motorrow.py源码发现,async是python的关键字,这里函数名和关键字冲突,全部换个函数名,如async_th
即可。
本文标题:python3下tomorow模块报语法错误
本文链接:https://www.haomeiwen.com/subject/ccbfyktx.html
网友评论