class Student(object):
    def __init__(self,name,score):
        self.__name=name
        self.__score=score

    def print_score(self):
        print('%s: %s' %(self.__name,self.__score))

    def get_name(self):
        return self.__name
 
    def get_score(self):
        return self.__score

    def set_score(self,score):
        if 0<= score <=100:
            self.__score=score
        else:
            raise ValueError('bad score')

if __name__=='__main__':
    x=Student('xjt',98)
    x.print_score()
    print('========')
    print(x._Student__name)
    print('========')
    print(x.get_name())
    print(x.get_score())
    score=int(input('enter score: '))
    x.set_score(score)
    print(x.get_score())
