python中对小数取整

>>> int(3)
3
>>> int(3.1)
3
>>> int(3.5)
3
>>> int(3.7)
3
>>> int(3.9)
3
原文地址:https://www.cnblogs.com/liujiaxin2018/p/14151085.html