Python exit codes

后端 未结 4 1029
失恋的感觉
失恋的感觉 2021-02-18 22:11

Where can I find information about meaning of exit codes of \"python\" process on Unix? For instance, if I do \"python thisfiledoesntexist.py\", I get exit code 2

Summar

4条回答
  •  时光说笑
    2021-02-18 22:42

    Maybe exit code constants from os module can help you. Also have a look at sys.exit documentation.

提交回复
热议问题