文章目录 1.向下取整2. 向上取整3. 四舍五入 1.向下取整 int(3.6) 3 2. 向上取整 import math math.ceil(3.1) 4 3. 四舍五入 round(3.1) 3 round(3.6) 4