【发布时间】:2013-01-31 12:06:01
【问题描述】:
我对 python 很陌生,所以我有一个非常简单的疑问。这是我的代码:
a=sri
try:
print a
except Exception:
print 'you have not put quotes for string'
else:
print 'dont know what error it is'
如何为此编写手动异常/错误处理?
【问题讨论】:
标签: python exception exception-handling error-handling