擅长:python、mysql、java
<p>有关数字类型<a href="https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex" rel="nofollow noreferrer">here</a>,请参阅文档。具体而言:</p>
<blockquote>
<p>round(x[, n]): x rounded to n digits, rounding half to even. If n is omitted, it defaults to 0.</p>
</blockquote>
<p>这基本上意味着一半(0.5)总是四舍五入到最接近的<em>偶数</em>数</p>