开发者社区 问答 正文

python中math模块中的log的作用是什么?

python中math模块中的log的作用是什么?

展开
收起
游客k7rjnht6hbtk6 2021-11-12 15:44:53 478 分享 版权
1 条回答
写回答
取消 提交回答
  • 返回x的自然对数,默认以e为基数,base参数给定时,将x的对数返回给定的base,计算式为:log(x)/log(base)

    2021-11-13 18:52:28
    赞同 展开评论