python3下tomorow模块报语法错误def async(n, base_type, timeout=None): ^ SyntaxError: invalid syntax

python3 pip 安装tomorrow模块,调用时候会报错:def async(n, base_type, timeout=None): ^ SyntaxError: invalid syntax

查看motorrow.py源码发现,async是python的关键字,这里函数名和关键字冲突,换个函数名,如async_th即可

posted on 2019-09-10 11:48  凌风子  阅读(1600)  评论(1编辑  收藏  举报