Discuss / Python / 交作业

交作业

Topic source

秋舞斜阳

#1 Created at ... [Delete] [Delete and Lock User]

class Student(object):

    def __init__(self, name, gender):

        self.name = name

        self.__gender = gender

    def get_gender(self):

        return self.__gender

    def set_gender(self,x):

        self.__gender = x


  • 1

Reply