python 取整函数 import mathnum = 11.4print(math.ceil(num)) # 12 向上取整print(math.floor(num)) # 11 向下取整print(round(num)) # 11 四舍五入 python小知识点 2024-10-09 43 点赞 0 评论 65 浏览