python-class

go on…

是否是实例

if isinstance(it,PathCollection):
it.remove()

是否是子类

issubclass(子类的名字, 父类的名字)
issubclass(Son, Parent)
True