擅长:python、mysql、java
<p>您的<code>else</code>部分将在这两种情况下执行。
<code>else</code>当条件不满足时循环终止时执行的部分找到了。哪个是代码中发生的事情。但是它也可以在没有<code>continue</code>语句的情况下工作。你知道吗</p>
<p>那么break语句的else部分呢,break语句的else部分将仅在以下情况下执行:</p>
<ul>
<li>如果循环正常完成,没有任何中断。你知道吗</li>
<li>如果循环没有遇到中断。你知道吗</li>
</ul>
<p><a href="https://i.stack.imgur.com/yPLeC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yPLeC.png" alt="enter image description here"/></a></p>