0
点赞
收藏
分享

微信扫一扫

python self

北邮郭大宝 2023-01-13 阅读 133


​​python self​​



class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score

st=Student('lg',99)

print(st.name)

lg





举报

相关推荐

0 条评论