测试开发之Python核心笔记(30):Python反射的应用
通常,我们操作对象的属性或者方法时,是通过点“.”操作符进行的。例如下面的代码:class Person: type = "mammal" def __init__(self, name): self.name = name def say_hi(self): print('Hello, my name is', self.name) @staticmethod def feed(): print("Three