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
posted @ 2019-04-24 18:18
posted @ 2019-04-19 16:32
posted @ 2019-04-17 18:47
posted @ 2019-04-09 12:47
posted @ 2019-04-03 17:44