isinstance(obj1,class) 可以判断前者是否是后者的实例

isinstance(obj1,class)

可以判断前者是否是后者的实例

原文地址:https://www.cnblogs.com/themost/p/6810503.html