except Exception, e: 这个语法需要用python2版本去运行 所以解决两种办法: 1.改成python3的语法 except Exception as e: 2.改用python2环境