摘要: 因为有基础,我直接简单写了##定义类,创建对象,调用对象方法,返回值 ##添加属性,和Java有区别 ##构造方法 python构造方法只有一个或者没有,和Java不同 ###继承 1 class Father: 2 def f(self): 3 print('father') 4 def smok 阅读全文
posted @ 2018-01-19 18:58 Alos403 阅读(259) 评论(0) 推荐(0) 编辑