python log10() 函数
来源:互联网 发布:linux 统计文件夹大小 编辑:程序博客网 时间:2024/04/30 12:31
Python log10() 函数
描述
log10() 函数返回以 10 为基数的 x 的对数。
语法
import math math.log10(x)
注意:log10() 函数不能直接访问,需要都 math 模块,通过调用静态对象调用该方法。
参数
x 数值表达式
返回值
log10() 函数返回以 10 为基数的 x 的对数,x>0。
实例
# -*- coding: UTF-8 -*-import math # 导入 math 模块print "math.log10(100) : ", math.log10(100)print "math.log10(1000) : ", math.log10(1000)print "math.log10(119L) : ", math.log10(119L)print "math.log10(math.pi) : ", math.log10(math.pi)
输出:
math.log10(100) : 2.0math.log10(1000) : 3.0math.log10(119L) : 2.07554696139math.log10(math.pi) : 0.497149872694
0 0
- python log10() 函数
- log10 ()函数
- log10 () 函数
- log10 函数
- hdu 1018 log10函数
- C++中的log10函数
- Matlab基本函数-log10函数
- log10
- log10
- 日常小记:C++中的log10函数
- matlab2c使用c++实现matlab函数系列教程-log10函数
- UVA 11029 Leading and Trailing (log10()函数+快速幂)
- nyoj 461Fibonacci数列(四)(log10()函数)
- Leading and Trailing 快速幂和cmath函数(modf函数,log10函数,pow函数)
- HDU 1060 求N^N的最高位 (数学,科学计数法+log10()函数)
- UVA-11029-Leading and Trailing-(快速幂,log10函数求大数首末数)
- math.h Log log10
- log10()的运用
- AngularJs 过滤器(filter)
- YII2模型之增删改查
- 简单编码
- Android Studio 快捷键汇总讲解
- 搭建Sonarqube
- python log10() 函数
- Android studio中的标题栏
- 开坑计3
- 苹果官方下载地址(iOS,mac OS, Xcode 等)
- 从服务器下载文件的命令总结
- Java编程:删除 List 元素的三种正确方法
- VR
- HTML5游戏开发实战之游戏自动保存进度
- Spring MVC @ModelAttribute 详解