@author jackzhenguo @desc @date 2019/2/15
四舍五入,ndigits代表小数点后保留几位:
ndigits
In [11]: round(10.0222222, 3) Out[11]: 10.022 In [12]: round(10.05,1) Out[12]: 10.1