#新建一个类
class Student:
    #定义课程
    def study_course(self,number,book,):
        self.number = number
        self.book = book


Marry = Student('11门课程','数据结构与算法')
print(Marry.number)
print(Marry.book)
d25dd43c64fc5939b5d4105f16f6cdc6f7c3bfe8
<mask token>

class Student:
    <mask token>


<mask token>

class Student:

    def study_course(self, number, book):
        self.number = number
        self.book = book


<mask token>
print(Marry.number)
print(Marry.book)

class Student:

    def study_course(self, number, book):
        self.number = number
        self.book = book


Marry = Student('11门课程', '数据结构与算法')
print(Marry.number)
print(Marry.book)

#新建一个类
class Student:
    #定义课程
    def study_course(self,number,book,):
        self.number = number
        self.book = book


Marry = Student('11门课程','数据结构与算法')
print(Marry.number)
print(Marry.book)