round(x[, n]) : 四舍五入

>>> round(12.3)
12.0
>>> round(12.5)
13.0
>>> round(12.36)
12.0
>>> 

精确度只能精确到小数点后面一位。

原文地址:https://www.cnblogs.com/blogofwyl/p/4658476.html