<p>1//10==0,带整数除法,所以-1//10!= 0 ? 你知道吗</p>
<pre><code>MPython 3.7.0b3 (v3.7.0b3:4e7efa9c6f, Mar 29 2018, 18:42:04) [MSC v.1913 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> -1 // 10
-1
</code></pre>
<p>这应该发生吗?你知道吗</p>
<p>这样解释比较容易:</p>
<p>运算<code>//</code>舍入“向左”整数,即</p>
<pre><code>1//10 -> 0.1 -> 0
-1 //10 -> -0.1 -> -1 (as -1 on the X axis is to the left of -0.1)
</code></pre>