扫码下载编程狮APP
W3Cschool
恭喜您成为首批注册用户
获得88经验值奖励
math 模块
Python math.e 常量用于返回欧拉数 (2.7182...)。
math.e 常量语法如下:
math.e
返回一个浮点数 2.718281828459045,表示数学常数 e。
以下实例返回欧拉数 (2.7182...):
# 导入 math 包 import math # 输出 e 的值 print (math.e)
输出结果:
2.718281828459045
更多建议:
扫描二维码
下载编程狮App
编程狮公众号
联系方式:
更多建议: