请问大神,我哪里错了?
class Person(object):
def __init__(self, name, score):
self.name=name
self.__score=score
def get_grade(self):
if self.__score>=80:
return 'A-优秀'
if self.__score>=60:
return 'B-及格'
if self.__score<60:
return 'C-不及格'
p1 = Person('Bob', 90)
p2 = Person('Alice', 65)
p3 = Person('Tim', 48)
print p1.get_grade()
print p2.get_grade()
print p3.get_grade()