Python【8】 isinstance(object, classinfo)

lycnight / 2023-07-23 / 原文

isinstance() 函数来判断一个对象是否是一个已知的类型,类似 type()。