摘要: Python小数向上取整和向下取整 首先需要导入math模块 import math 小数向上取整使用ceil函数 import math f_num = 3.1 f_num = math.ceil(f_num) print(f_num) 小数向下取整使用floor函数 import math d_ 阅读全文
posted @ 2020-09-14 12:23 极客易先生 阅读(3947) 评论(0) 推荐(0) 编辑