擅长:python、mysql、java
<p>实际上,它从不“返回一个<code>False</code>来终止while循环”,因为它根本不需要。在</p>
<p>当Python命中一个函数内的<a href="http://docs.python.org/2/reference/simple_stmts.html#the-return-statement" rel="nofollow">return-statement</a>时,它会立即退出该函数。意思是,当到达<code>return better</code>时,<code>sqrt</code>退出,在此过程中,while循环也退出。在</p>