Pythonos
模块的文档提供了一组在Unix上可用的退出状态。你知道吗
macOS是Unix。你知道吗
但是,os.EX_NOTFOUND
返回
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'EX_NOTFOUND'
这是怎么回事?更具体地说,这个常量的值应该是多少?我猜应该是79
,但我不知道。你知道吗
Tags:
在退出代码部分的顶部,在os.EX_OK的正上方,它说:
所以MacOS平台没有实现它。Linux看起来也一样。我在Solaris上找到了它,它的预期值是79
相关问题 更多 >
编程相关推荐