File "F:/jxxxxxxxxxxx/xxxxxxx/xxxxxx/xxxx.py", line 30
except Exception,e:
^
SyntaxError: invalid syntax
You should have written except getopt.GetoptError as e:
instead of except getopt.GetoptError, e:
尝试 修改 except Exception,e:
更改为 except Exception as e:
as e
是python 2.5
之后的方案
(Python)异常处理try…except、raise:https://www.cnblogs.com/Lival/p/6203111.html