会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
To be or not to be
That is a question
新随笔
联系
管理
2020年2月22日
Python 类 初学者笔记
摘要: 面对象编程:编写表现世界中的事物和景象的类,并基于这些类创建对象,被创建的对象称为实例化。 创建类 class Dog(): #Python中类名称中的首字母要大写 def __init__(self, name, age):#我是一个构造器 #类中的函数都称为【方法】,init__()是个特殊的方
阅读全文
posted @ 2020-02-22 13:57 main(void)
阅读(346)
评论(0)
推荐(0)
编辑
公告
.c_ad_block { display: none !important; } #ad_t2{ display: none !important; }