主页
Python
Python math.log1p() 方法
demo_ref_math_log1p
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return the log(1+number) for different numbers print(math.log1p(2.7183)) print(math.log1p(2)) print(math.log1p(1))
1.3132665745863341
1.0986122886681096
0.6931471805599453