标签:python
import sys
try:
sys.exit(1)
except SystemExit,e:
print e
1
python 获取程序退出状态码
原文地址:http://knowledgeq.blog.51cto.com/9549168/1952928