python判断两个变量是否为同一数据类型

>>> a = 1000
>>> b = 1
>>> isinstance(a,type(b))
True
>>>

原文地址:https://www.cnblogs.com/fanstatic/p/10746396.html