import math
f = 11.2 print math.ceil(f) #向上取整 print math.floor(f) #向下取整 print round(f) #四舍五入
本文标题:python取整
本文链接:https://www.haomeiwen.com/subject/yildbctx.html
网友评论