Pythonmath.e定数_
例
オイラーの数を印刷します。
# Import math Library
import math
# Print the value of E
print (math.e)
定義と使用法
定数はEularのmath.e
数2.718281828459045を返します。
構文
math.e
技術的な詳細
戻り値: | float 数学定数eを表す値2.718281828459045 |
---|---|
Pythonバージョン: | 1.5 |