会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程霜灵
博客园
首页
新随笔
联系
管理
订阅
2018年12月13日
python面向对象编程
摘要: 1.类和实例 类是抽象的模板,而实例是根据类创建出来的具体对象 class Student(object): def __init__(self,name,score): self.name = name self.score =score def print_score(self): print(
阅读全文
posted @ 2018-12-13 11:38 程霜灵
阅读(161)
评论(0)
推荐(0)
公告