isinstance() 函数来判断一个对象是否是一个已知的类型,类似type()。 isinstance() 与type() 区别:. type() 不会认为子类是一种父类类型,不考虑继承关系 ...
確定! 回上一頁