主页
Python
Python math.log() 方法
demo_ref_math_log
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return the natural logarithm of different numbers print(math.log(2.7183)) print(math.log(2)) print(math.log(1))
1.0000066849139877
0.6931471805599453
0.0