考虑:
>>> numerator = 29 >>> denom = 1009 >>> print str(float(numerator/denom)) 0.0
如何让它返回小数?
python numbers
numbers ×1
python ×1