python round() round函数

round(float, ndig) 接受一个浮点数 floalt 并对其四舍五入,保存 ndig位小数。
若不提供ndig 参数,则默认小数点后0位。
round()仅用于浮点数.

原文地址:https://www.cnblogs.com/chunk998/p/5050267.html