Python 除法小技巧

复制代码 代码如下:

from __future__ import division

print 7/3

输出结果:
2.3333333333

你可能感兴趣的