The Python Apprentice
上QQ阅读APP看书,第一时间看更新

Promotion to float

The result of any calculation involving int and float is promoted to a float:

>>> 3.0 + 1
4.0

You can read more about Python's number types in the Python documentation.