假设我有以下课程:
class myClass(): def __init__(self, number): self.myStr = "bla" self.myInt = number * 3
我如何获得属性类型?我的意思是我想得到以下列表:['str','int']?
我也希望它适用于派生类。
非常感谢 :)
python python-2.7
python ×1
python-2.7 ×1