【发布时间】:2012-05-14 21:36:50
【问题描述】:
我是 python 新手,想知道是否可以在不处理异常的情况下创建 try-catch-else 语句?
喜欢:
try:
do_something()
except Exception:
else:
print("Message: ", line) // complains about that else is not intended
【问题讨论】:
标签: python exception try-catch