会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shangxin_bai
博客园
首页
新随笔
联系
订阅
管理
2022年2月15日
绑定,非绑定方法,隐藏属性,property装饰器,继承
摘要: 绑定方法 # 绑定方法:绑定给类的,绑定给对象的 class Student(): school = 'SH' def __init__(self, name, age): self.name = name self.age = age def tell_info(self, v): p
阅读全文
posted @ 2022-02-15 13:41 shangxin_bai
阅读(44)
评论(0)
推荐(0)
公告