如何在Python 2.7中分割两个数字并获得带小数的结果?
我不明白为什么有区别:
在Python 3中:
>>> 20/15 1.3333333333333333
在Python 2中:
>>> 20/15 1
这不是一个模数吗?
python division python-2.7 python-3.3
division ×1
python ×1
python-2.7 ×1
python-3.3 ×1