我使用的是Python 3.4.3.该math.floor功能为我提供了正面和负面数字的不同答案.例如:
math.floor
>>> math.floor (19.8) 19 >>> math.floor (-19.8) -20
为什么我在答案中得到了这个差异?
python math floor
floor ×1
math ×1
python ×1