为什么用类名无法调用类方法,却可以调用变量?
class Person(object): count = 0 def __init__(self,name,score): self.name = name self.score = score def get_grade(self): return 'A' p1 = new Person('Bom',90) print p1.get_grade() print Person.get_grade() print Person.count print p1.count