python self
python self
class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score
st=Student('lg',99)
print(st.name)
lg
posted on 2018-06-26 13:45 luoganttcc 阅读(...) 评论(...) 编辑 收藏
class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score
st=Student('lg',99)
print(st.name)
lg
posted on 2018-06-26 13:45 luoganttcc 阅读(...) 评论(...) 编辑 收藏