print
"
math.log(100.12) :
"
,
math
.
log
(
100.12
)
print
"
math.log(100.72) :
"
,
math
.
log
(
100.72
)
print
"
math.log(119L) :
"
,
math
.
log
(
119L
)
print
"
math.log(math.pi) :
"
,
math
.
log
(
math
.
pi
)
print
"
math.log(10,2) :
"
,
math
.
log
(
10
,
2
)
以上实例运行后输出结果为:
math.log(100.12) : 4.60636946656
math.log(100.72) : 4.61234438974
math.log(119L) : 4.77912349311
math.log(math.pi) : 1.14472988585
math.log(10,2) : 3.32192809489
Python 数字