📜  numpy.issubclass_()函数Python

📅  最后修改于: 2022-05-13 01:55:39.827000             🧑  作者: Mango

numpy.issubclass_()函数Python

numpy.issubclass_()函数用于判断一个类是否是第二个类的子类。

代码#1:

# Python program explaining
# numpy.issubclass_() function
            
# importing numpy as geek 
import numpy as geek 
        
gfg = geek.issubclass_(geek.int32, float)
      
print (gfg)

输出 :

False


代码#2:

# Python program explaining
# numpy.issubclass_() function
            
# importing numpy as geek 
import numpy as geek 
        
gfg = geek.issubclass_(geek.float64, float)
      
print (gfg)

输出 :

True