Python list of class attributes - Python

weixin_34321977發表於2012-11-21

Python list of class attributes - Python

import inspect  class aClass:     aMember = 1     def aFunc():         pass  inst = aClass() print inspect.getmembers(inst)

相關文章