Python:例外を除く、e:^ SyntaxError:無効な構文



Python Except Exception



File 'F:/jxxxxxxxxxxx/xxxxxxx/xxxxxx/xxxx.py', line 30 except Exception,e: ^ SyntaxError: invalid syntax

except getopt.GetoptError as e:の代わりにexcept getopt.GetoptError, e:と書くべきでした
編集してみてくださいexcept Exception,e:
except Exception as e:に変更されました

as eはいpython 2.5プログラム後



(Python)例外処理try ... exception、raise: https://www.cnblogs.com/Lival/p/6203111.html