一
try:
pass
except Exception as e:
print(e)
二
import sys
try:
pass
except:
print(sys.exc_info())
下面有其他的方法:
http://blog.sina.com.cn/s/blog_628cc2b70102wccg.html
一
try:
pass
except Exception as e:
print(e)
二
import sys
try:
pass
except:
print(sys.exc_info())
下面有其他的方法:
http://blog.sina.com.cn/s/blog_628cc2b70102wccg.html