python中round函数的一个小坑——奇进偶弃
>>> round(3.1415,3)
3.142
>>> round(4.1415,3)
4.141
>>> round(10.5)
10
>>> round(11.5)
12
标签:偶弃,函数,python,奇进,round,小坑 From: https://www.cnblogs.com/chucklu/p/16724926.html
>>> round(3.1415,3)
3.142
>>> round(4.1415,3)
4.141
>>> round(10.5)
10
>>> round(11.5)
12
标签:偶弃,函数,python,奇进,round,小坑 From: https://www.cnblogs.com/chucklu/p/16724926.html