# 导入复数数学库用于复数运算
import cmath
# 判断复数是否为非数字 (NaN)
print(cmath.isnan(12 + float('nan')))
print(cmath.isnan(2 + 3j))