2023年6月8日
摘要: 向上取整:math.ceil() import math math.ceil(-0.9) >>> 0 math.ceil(0.3) >>> 1 向下取整:math.floor()、int()、//(整除) math.floor(-0.3) >>> -1 int(0.9) >>> 0 3 // 2 # 阅读全文
posted @ 2023-06-08 22:01 shui00cc 阅读(421) 评论(1) 推荐(0) 编辑