摘要:
#!/home/miao/python python3 # -*- coding: utf-8 -*- '这是关于继承和多态' class Parent(object): def __init__(self,name,age): self.__name = name self.age = age def get_name(self): print(self.__name) def set_name 阅读全文
posted @ 2019-10-06 18:49
miaorn
阅读(177)
评论(0)
推荐(0)
摘要:
#!/home/miao/python python3 # -*- coding: utf-8 -*- 'This is a test of class' #廖雪峰面向对象编程 中的 访问限制 __author__ = 'miao' class Student1(object): def __init__(self, name, gender): self.name = name self.__g 阅读全文
posted @ 2019-10-06 16:17
miaorn
阅读(205)
评论(0)
推荐(0)

浙公网安备 33010602011771号