摘要:
先看下hasattr和getattr在反射中的用法 再看下setattr在反射中的运用 最后看下delattr在反射中的运用 阅读全文
posted @ 2017-07-19 22:44
bainianminguo
阅读(242)
评论(0)
推荐(0)
摘要:
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): # ... 阅读全文
posted @ 2017-07-19 20:44
bainianminguo
阅读(172)
评论(0)
推荐(0)