math


# math 数学计算

import math

# # 计算阶乘
# print(math.factorial(6))


# 向下取整  12
# print(math.floor(12.98))  

# 向上取整 15
# print(math.floor(15.01))  

# 幂运算 8.0  2*2*2
# print(math.pow(2,3))  
# 8
# print(pow(2,3))

# 自带的四舍五入 4.52
# print(round(4.5212,2))
posted @ 2024-12-31 17:21  13522679763-任国强  阅读(11)  评论(0)    收藏  举报