擅长:python、mysql、java
<p><code>//</code>实现“floor division”,而不考虑类型。所以
<code>1.0/2.0</code>将给出<code>0.5</code>,但是<code>1/2</code>、<code>1//2</code>和<code>1.0//2.0</code>都将给出<code>0</code>。</p>
<p>详见<a href="https://docs.python.org/whatsnew/2.2.html#pep-238-changing-the-division-operator" rel="noreferrer">https://docs.python.org/whatsnew/2.2.html#pep-238-changing-the-division-operator</a></p>