Python - round()round() 函数返回一个数字,四舍五入到小数点后指定位置的精度。>>>round(1234.456,2)1234.46 >>>round(1234.456,1)1234.5 >>>round(1234.456,0)1234.0 >>>round(1234.456, -1)1230.0