内置函数(1)判断子类和是不是对象 1.判断是不是对象 原本判断时 type(参数)is (参数) 现用内置函数: class Foo: pass obj=Foo() print(isinstance(obj,Foo))