阅读背景:

整数向上、向下和四舍五入

来源:互联网 
import math

f = 29.4
print(math.ceil(f)) #向上取整
print(math.floor(f)) #向下取整prin



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: