python 向上取整ceil 向下取整floor 四舍五入round
摘要:
#encoding:utf-8import math#向上取整print "math.ceil---"print "math.ceil(2.3) => ", math.ceil(2.3)print "math.ceil(2.6) => ", math.ceil(2.6)#向下取整print "\nm... 阅读全文
posted @ 2014-05-07 17:48 李皮筋 阅读(103082) 评论(1) 推荐(2) 编辑