# 导入复数数学库用于复数运算
import cmath
# 判断复数是否为无穷大
print(cmath.isinf(complex(10 + float('inf'))))
print(cmath.isinf(11 + 4j))