摘要:
先看下hasattr和getattr在反射中的用法 再看下setattr在反射中的运用 最后看下delattr在反射中的运用 阅读全文
摘要:
class A(object): def test_func(self): print("from A") class B(A): pass # def test_func(self): # print("from B") class C(A): pass # def test_func(self): # ... 阅读全文