round()

参考链接: 

http://www.runoob.com/python3/python3-func-number-round.html

第一个参数是一个浮点数,第二个参数是保留的小数位数,可选,如果不写的话默认保留到整数。

链接: https://www.cnblogs.com/anpengapple/p/6507271.html

posted @ 2018-06-19 16:27  BreakofDawn  阅读(72)  评论(0编辑  收藏  举报