Beginning Python From Novice to Professional, 2nd Edition, CHAPTER 8, EXCEPTIONS, Page 173:
正文中这样描写:
The point is that using try/except statements is in many cases much more natural (more “Pythonic”) than if/else, and you should get into the habit of using them where you can.1
注释:
1. The preference for try/except in Python is often explained through Rear Admiral Grace Hopper’s words of wisdom, “It’s easier to ask forgiveness than permission.” This strategy of simply trying to do something and dealing with any errors, rather than doing a lot of checking up front, is called the Leap Before You Look idiom.
————————————————————————————————
Python 基础教程(第2版),第8章,异常,第136页:
在很多情况下,使用try/except语句比使用if/else会更自然一些(更“Python化”),应该养成尽可能使用if/else语句的习惯。 ①
①try/except语句在 Python 中的表现可以用海军少将Grace Hopper的妙语解释:“请求宽恕易于请求许可。”在做一件事时去处理可能出现的错误,而不是在开始做事前就进行大量的检查,这个策略可以总结为习语“看前就跳(Leap Before You Look)”。