floor () rounds down. int() truncates. The difference is clear when you use negative numbers: >>> import math >>> math.floor(-3.5) -4 ...
確定! 回上一頁