fanstatic

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

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

posted on 2019-04-21 19:34  fanstatic  阅读(3422)  评论(0编辑  收藏  举报