>>> import math
>>> math.floor(32.9)
32
>>> math.ceil(32.3)
33
>>> math.ceil(32)
32
>>>
>>> from math import sqrt
>>> sqrt(9)
3.0
>>>
使用python的数学函数
最新推荐文章于 2025-06-23 11:04:46 发布
>>> import math
>>> math.floor(32.9)
32
>>> math.ceil(32.3)
33
>>> math.ceil(32)
32
>>>
>>> from math import sqrt
>>> sqrt(9)
3.0
>>>