@@ -0,0 +1,2030 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A%0Aclass People:%0A    __name = 'furzoom'%0A    __age = 22%0A    gender = 'female'%0A    __country = 'China'%0A%0A    def print_name(self):%0A        print(self.__name)%0A%0A    def set_name(self, name):%0A        print(id(self.__name))%0A        self.__name = name%0A        print(id(self.__name))%0A%0A    def set_gender(self, gender):%0A        self.gender = gender%0A%0A    @classmethod%0A    def get_country(cls):%0A        return cls.__country%0A%0A    @classmethod%0A    def set_country(cls, country):%0A        cls.__country = country%0A%0A    def __str__(self):%0A        return self.__name + %22 %22 + str(self.__age) + %22 %22 + self.gender + %22 %22 %5C%0A               + self.__country%0A%0A%0Aclass UniversityMember:%0A    def __init__(self, name, age):%0A        self.name = name%0A        self.age = age%0A%0A    def get_name(self):%0A        return self.name%0A%0A    def get_age(self):%0A        return self.age%0A%0A%0Aclass Student(UniversityMember):%0A    def __init__(self, name, age, sno, mark):%0A        UniversityMember.__init__(self, name, age)%0A        self.sno = sno%0A        self.mark = mark%0A%0A    def get_sno(self):%0A        return self.sno%0A%0A    def get_mark(self):%0A        return self.mark%0A%0A%0Aclass Teacher(UniversityMember):%0A    def __init__(self, name, age, tno, salary):%0A        UniversityMember.__init__(self, name, age)%0A        self.tno = tno%0A        self.salary = salary%0A%0A    def get_tno(self):%0A        return self.tno%0A%0A    def get_salary(self):%0A        return self.salary%0A%0A%0Aif __name__ == '__main__':%0A    def test1():%0A        p = People()%0A        print(p)%0A        p.set_name(%22mn%22)%0A        p.set_gender('male')%0A        p.set_country('USA')%0A        print(p)%0A        del p.gender%0A        print(p)%0A%0A        q = People()%0A        print(q)%0A%0A    def test2():%0A        st = Student('mn', 18, 110, 95)%0A        print(st.get_name(), st.get_age(), st.get_sno(), st.get_mark())%0A        teacher = Teacher('furzoom', 36, %22001%22, 8888)%0A        print(teacher.get_name(), teacher.get_age(), teacher.get_tno(),%0A              teacher.get_salary())%0A%0A    # test1()%0A    test2()%0A

add new class