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) => ",
相關文章
相關標籤/搜索