踩踩更健康 1.python3中的内置函数round()常被用来做四舍五入的方式,但是其并不是完全安装我们所理解的四舍五入的方法来操作的,其中需要被操作的5是偏向偶数方向舍入的如图: >>> round(5/2) 2 >>> round(2.5) 2 >>> round(2.6) 3 >>> round(1.5) 2 >>> round(3.5) 4 >>> round(4.5) 4