在python中如何以cls.variable格式访问实例的属性?
(在ruby中,它可以是格式cls。#{variable})
>>>cls.classname
u'CIM_RegisteredProfile'
>>>var='classname'
>>>cls.var
Traceback (most recent call last):
File "<console>", line 0, in <module>
AttributeError: 'CIMClass' object has no attribute 'var'