We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
isinstance 作用以及应用场景?
千锋教育
isinstance 是判断一个对象是否为另一个对象的子类的,例如我们知道在 Python3 中 bool 类型其实是 int 的子类,所以我们可以对其检测。