擅长:python、mysql、java
<p>第一个例子可以翻译为:</p>
<p><code>while there is something more in anylist add whatever to the end</code></p>
<p><em>这意味着列表会一直增长,直到系统崩溃。</em></p>
<p>所以它永远不会结束。第二种解释为:</p>
<pre><code>for the number of items in anylist add whatever to the end of the list.
</code></pre>
<p><em>所以会使列表的长度加倍。</em></p>
<p>因此python正是按照您的指示来做的(我怀疑这并不是您所认为的那样)。在</p>