Python/ref math pi
来自菜鸟教程
<languages />
Python math.pi常数
例
打印PI的值:
# Import math Library
import math
# Print the value of pi
print (math.pi)
定义和用法
The
math.pi
常数会传回PI值:3.141592653589793。
注意: 数学上PI表示为 π .
句法
math.pi
技术细节
| 返回值: | A
|
| Python版本: | 1.4 |