会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
肉松蛋卷
博客园
首页
新随笔
联系
订阅
管理
2020年5月27日
python—类的继承——定制类
摘要: python中继承一个类 class Person(object): def __init__(self, name, gender): self.name = name self.gender = gender 定义Student类时,只需要把额外的属性加上,例如score: class Stud
阅读全文
posted @ 2020-05-27 20:08 肉松蛋卷
阅读(252)
评论(0)
推荐(0)