摘要: 【知识点】 1、isinstance() 判断对象所属类型,包含继承关系 type()与isinstance()的区别 1 class mystr(str):pass 2 ms=mystr('alex') 3 print(ms) 4 print(type(ms) is str) # 不包含继承关系, 阅读全文
posted @ 2020-02-14 23:04 红叶楠木 阅读(165) 评论(0) 推荐(0)