【发布时间】:2017-05-29 04:27:32
【问题描述】:
我的代码看起来像这样,我不清楚 exit (0) 和 exit (other num)。 我给自己一些时间,但我没有足够清楚自己
from sys import exit
class Scene(object):
def enter(self):
print "This scene is not yet configured"
exit(1)
【问题讨论】:
-
是程序返回给系统的值。通常,值 0 表示“正确退出”,其他值表示失败。
-
你好,你的意思是它给出了错误消息,对吧?
标签: python python-2.7