python的数学操作运算

import math

math.pi #圆周率

math.e #指数

math.sin(2*math.pi/180)#正弦函数

math.sqrt()#平方根求解

math.log(值,底数)#求解对数

math.exp()#求解指数函数

猜你喜欢

转载自www.cnblogs.com/thechain/p/9258861.html
今日推荐