python3下tomorow模块报语法错误
2020-09-17 本文已影响0人
testerzhang
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即可。