Python/ref cmath e

来自菜鸟教程
机器人讨论 | 贡献2020年10月29日 (四) 08:49的版本 (机器人:添加分类Python基础教程
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至:导航、​搜索

<languages />

Python cmath.e常数

❮cmath方法

打印Euler e的值:

    # Import cmath Library
import cmath 

# Print the value of Euler e

    print (cmath.e)

定义和用法

The cmath.e 常量返回eular的数字:2.718281828459045。

句法

    cmath.e
  

技术细节

返回值: A

float 值2.718281828459045,代表数学常数 e

Python版本: 1.5

❮cmath方法