擅长:python、mysql、java
<p>本教程提供了一个良好的开始,但不是语言参考。<a href="https://docs.python.org/2.7/reference/compound_stmts.html#the-try-statement" rel="noreferrer">Read the reference here.</a></p>
<p>特别注意:</p>
<blockquote>
<p>The optional else clause is executed if and when control flows off the end of the try clause.</p>
</blockquote>
<p>脚注2澄清:</p>
<blockquote>
<p>Currently, control “flows off the end” except in the case of an exception or the execution of a return, continue, or break statement.</p>
</blockquote>
<p>所以你对<code>continue</code>的使用是由它显式地解决的。</p>