Python里round 四舍五入问题,round(3.15,1)为什么是3.1而不是3.2

问题描述:

Python里round 四舍五入问题,round(3.15,1)为什么是3.1而不是3.2

5后面如果还有精度,那么就是3.2了
如:
>>> round(3.151,1)
3.2