Python math.nan 常数
例如:
打印nan的值:
# Import math Library
import math
# 打印nan的值
print (math.nan)1、定义和用法
math.nan常量返回浮点nan(不是数字)值。 此值不是合法数字。
nan常数等效于float('nan')。
2、调用语法
math.nan3、方法说明
返回值: |
|
Python Version: | 3.5 |
例如:
打印nan的值:
# Import math Library
import math
# 打印nan的值
print (math.nan)math.nan常量返回浮点nan(不是数字)值。 此值不是合法数字。
nan常数等效于float('nan')。
math.nan返回值: |
|
Python Version: | 3.5 |