当Python 3中的尾随小数点> = 0.5时,math.ceil()和round()之间的算法区别是什么?
例如,
round(9.5) = 10 round(9.67) = 10 math.ceil(9.5) = 10 math.ceil(9.5) = 10
python algorithm math python-3.x
algorithm ×1
math ×1
python ×1
python-3.x ×1