Python 3.x中的除法

Python 3.x中改变了division运算:

例如:

5/4 = 1.25 而不是 1

5//4 = 1 而不是1.25


但是在Python 2.x中

5/4 = 1 而不是1.25

你可能感兴趣的:(python,3.x,除法运算)