2018年9月12日

033_class_Mul-inheritance

摘要: #!/usr/bin/env python# Author:liujunclass People(object): def __init__(self,name,age): self.name = name self.age = age def eat(self): print("%s is eat 阅读全文

posted @ 2018-09-12 22:48 langjitianyadaolao 阅读(99) 评论(0) 推荐(0)

032_class_inheritance

摘要: #!/usr/bin/env python# Author:liujunclass People(object): def __init__(self,name,age): self.name = name self.age = age def eat(self): print("%s is eat 阅读全文

posted @ 2018-09-12 22:43 langjitianyadaolao 阅读(88) 评论(0) 推荐(0)

031_class_encapsulation

摘要: #!/usr/bin/env python# Author:liujunclass Role: n = 123; # This is a class variable stored in class(not in a object) name = "class name" n_list = [] d 阅读全文

posted @ 2018-09-12 22:42 langjitianyadaolao 阅读(127) 评论(0) 推荐(0)

导航