2020-01-15

2020-01-15  本文已影响0人  摇摆_soul

'''

# 在类中定义函数

class Student(object):

    # _init_第一参数是self,表示本身

    def _init_(self, name, score):

        # 将参数传给self

        self.name=name

        self.score=score

'''

上一篇 下一篇

猜你喜欢

热点阅读