摘要:a=111 # type() 返回数据类型 In: type(a) Out: int In: print(type(a)) Out: <class 'int'> # isinstance() 返回bool值 In: isinstance(a,int) Out: True #两者在判断有继承关系的对象
阅读全文
posted @ 2018-12-28 19:50
posted @ 2018-12-28 19:50
posted @ 2018-12-28 09:33
posted @ 2018-12-27 23:00
posted @ 2018-12-27 15:22