python中取整的几种方法

#encoding:utf-8 import math #向上取整 print "math.ceil---" print "math.ceil(2.3) => ", math.ceil(2.3) print "math.ceil(2.6) => ", math.ceil(2.6) #向下取整 print "\nmath.floor---" print "math.floor(2.3) => ",
相关文章
相关标签/搜索