美文网首页
python3下tomorow模块报语法错误

python3下tomorow模块报语法错误

作者: testerzhang | 来源:发表于2020-09-17 14:29 被阅读0次

    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