import mathf = 29.4print(math.ceil(f)) #向上取整print(math.floor(f)) #向下取整prin 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交