Python cmath.nan 常量
定义和用法
cmath.nan
常量返回一个浮点数 nan(非数字)值。此值不是合法数字。
nan 常量等效于 float("nan")
或 math.nan
。
语法
cmath.nan
技术详情
返回值 | 一个 float 值,nan(非数字) |
---|---|
Python 版本 | 3.6 |
cmath.nan
常量返回一个浮点数 nan(非数字)值。此值不是合法数字。
nan 常量等效于 float("nan")
或 math.nan
。
cmath.nan
返回值 | 一个 float 值,nan(非数字) |
---|---|
Python 版本 | 3.6 |
如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com
如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com