擅长:python、mysql、java
<p>这在<a href="https://docs.python.org/3/reference/compound_stmts.html#the-try-statement" rel="noreferrer">the documentation</a>中有明确的解释:</p>
<blockquote>
<p>If an exception occurs in any of the clauses and is not handled, the exception is temporarily saved. The <code>finally</code> clause is executed. [..] If the <code>finally</code> clause executes a <code>return</code> or <code>break</code> statement, <strong>the saved exception is discarded</strong></p>
</blockquote>