#! /usr/bin/python3
# -*- coding:UTF-8 -*-

class Student(object):
	def __init__(self,name,score):
		self.__name=name
#		self.name=name
		self.__score=score
#		self.score=score
	
	def info(self):
		print('学生：%s；分数：%s' %(self.__name,self.__score))
	def get_score(self):
		return self.__score
	
	def set_score(self,score):
		if 0<=score<=100:
			self.__score=score
		else:
			print('请输入0到100的数字。')
			self.__score=input()
			
stu=Student('xiaomeng',95)
print('修改前分数：',stu.get_score())
stu.info()
#stu.__score=0
stu.set_score(-10)
print('修改后分数：',stu.get_score())
stu.info()