Python/ref math nan
来自菜鸟教程
<languages />
Python math.nan常数
例
打印nan的值:
# Import math Library
import math
# Print the value of nan
print (math.nan)
定义和用法
The
math.nan
常量返回浮点nan(非数字)值。此值不是合法数字。
nan常数等于
float('nan')
.
句法
math.nan
技术细节
| 返回值: | A
|
| Python版本: | 3.5 |