摘要:
python round() 函数 Python用于四舍五入的内建函数round() ,它的定义为 意思是, 将 小数部分保留到 ndigits 指定的 小数位,也就是 精度保持到 ndigits -1 位; 如果没有 指定 ndigits ,则 精度 保持到 整数位。 例如 n = 5.11965811966 直接 round 时, ... 阅读全文
posted @ 2017-03-30 20:19
odoouse
阅读(4979)
评论(0)
推荐(0)