BillBie

导航

2019年4月24日 #

python动态生成类

摘要: 动态生成类的可使用type() 一.先查看普通创建类的方法 class A(): def __init__(self): print('A初始化') class B(A): def __init__(self): super().__init__() a=A() print(type(A)) b=B 阅读全文

posted @ 2019-04-24 18:18 BillBie 阅读(22) 评论(0) 推荐(0)