会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Alnk
邮箱:1029612787@qq.com
博客园
管理
2021年4月21日
Python语言系列-07-面向对象2
摘要: 重构父类__init__方法 #!/usr/bin/env python3 # author:Alnk(李成果) # 需求:Dog类要新增一个实例属性,但是Cat类不需要 class Animal(object): def __init__(self, name, age): self.name =
阅读全文
posted @ 2021-04-21 17:40 李成果
阅读(54)
评论(0)
推荐(0)
编辑
公告