'''
# 在类中定义函数
class Student(object):
# _init_第一参数是self,表示本身
def _init_(self, name, score):
# 将参数传给self
self.name=name
self.score=score
'''
'''
# 在类中定义函数
class Student(object):
# _init_第一参数是self,表示本身
def _init_(self, name, score):
# 将参数传给self
self.name=name
self.score=score
'''
本文标题:2020-01-15
本文链接:https://www.haomeiwen.com/subject/hkrtzctx.html
网友评论