numpy.exceptions.ComplexWarning# exception exceptions.ComplexWarning[源代码]# 当将复数类型转换为实数类型时引发的警告。 如实现所示,将复数转换为实数会丢弃其虚部,但这可能不是用户真正想要的行为。