擅长:python、mysql、java
<p><code>break</code>导致错误,它只能在<code>for</code>循环或<code>try/finally</code>块中使用,而不能在<code>try/except</code>中使用,请参见<a href="http://docs.python.org/release/2.5.2/ref/break.html" rel="nofollow">docs</a>和<a href="http://docs.python.org/reference/compound_stmts.html#the-try-statement" rel="nofollow">more</a>。</p>