日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:pythone怎么表示

exp()方法返回x的指數(shù),ex。

語法

以下是 exp() 方法的語法:

import math
math.exp( x )

相關(guān)推薦:《python教程》

注意:exp()是不能直接訪問的,需要導(dǎo)入 math 模塊,通過靜態(tài)對象調(diào)用該方法。

參數(shù)

x -- 數(shù)值表達(dá)式。

返回值

返回x的指數(shù),ex。

實(shí)例

以下展示了使用 exp() 方法的實(shí)例:

#!/usr/bin/python
import math   # 導(dǎo)入 math 模塊
print "math.exp(-45.17) : ", math.exp(-45.17)
print "math.exp(100.12) : ", math.exp(100.12)
print "math.exp(100.72) : ", math.exp(100.72)
print "math.exp(119L) : ", math.exp(119L)
print "math.exp(math.pi) : ", math.exp(math.pi)

以上實(shí)例運(yùn)行后輸出結(jié)果為:

math.exp(-45.17) :  2.41500621326e-20
math.exp(100.12) :  3.03084361407e+43
math.exp(100.72) :  5.52255713025e+43
math.exp(119L) :  4.7978133273e+51
math.exp(math.pi) :  23.1406926328

當(dāng)前題目:創(chuàng)新互聯(lián)Python教程:pythone怎么表示
URL網(wǎng)址:http://www.5511xx.com/article/cohpepp.html