我阅读了Python子进程模块的文档:https://docs.python.org/2/library/subprocess.html#subprocess.check_call
我很困惑。
The CalledProcessError object will have the return code in the returncode attribute.
下面几行:
subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1
这个东西叫什么名字?
返回代码或退出状态?
最佳答案
两者是同一个东西 - https://en.wikipedia.org/wiki/Exit_status
关于python - 返回代码与退出状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42947631/