返回不大于 x 的下一个整数,舍去小数部分取整。
math.floor(x)复制
math.floor(x)
def test(): ret=math.floor(4.567) print(ret)复制
def test():
ret=math.floor(4.567)
print(ret)