isinstance

isinstance(obj, type)

判断obj的类型是否为type或者type中的一种

posted @ 2020-07-24 16:52  6+0  阅读(204)  评论(0编辑  收藏  举报