备注: print(1/0) 除数为0会报错,而不是返回 NaN;一定要 注意 除数为0时的异常判断;如需处理 NaN,需 from decimal import *取余运算、指数幂运算、取绝对值、四舍五入
Decimal numbers include special values such as NaN which stands for “Not a number”, positive and negative Infinity, and -0
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |