2022年1月12日

python里type,object,类的关系

摘要: 1 # type生成了所有的对象,包含object,list,类..... 2 # type生成了int,int生成了1 3 a = 1 4 print(type(a)) # >> <class 'int'> 5 print(type(int)) # >> <class 'type'> 6 prin 阅读全文

posted @ 2022-01-12 16:04 Shine-Zhong 阅读(36) 评论(0) 推荐(0) 编辑

导航