发布时间:2019-08-30 08:33:10编辑:auto阅读(3597)
1.计算乘方
pow(4,3)
# 结果64
2.计算平方
import numpy
numpy.square(4)
# 结果16pow(5,2)
#结果25
import numpy
numpy.sqrt(16)
# 结果4.0
numpy.sqrt(16.)
# 结果4.0pow(25, 0.5)
#结果5.0
pow(25, .5)
#结果5.0import math
math.sqrt(25)
#结果5.0
math.sqrt(25.0)
#结果5.0
上一篇: Python – Check if ke
下一篇: Python3 序列解包
51284
50736
41334
38144
32611
29514
28364
23233
23201
21526
1597°
2329°
1931°
1873°
2201°
1914°
2601°
4369°
4215°
2992°