1.type()函数用法 str = ‘hhh’ type(str) 2.isinstance isinstance(1,int) 第一个参数为需要检测的数据 第二个参数为猜测的数据 如果一致 返回True