2017年10月2日
摘要: #以下在python 3.6版本里已没有这个问题了1class A: def _init__(self): print ("this is A") def save(self): print ("save metho from A")class B(A): def _init__(self): pr 阅读全文
posted @ 2017-10-02 16:44 绿洲2017 阅读(207) 评论(0) 推荐(0) 编辑
摘要: class Father(object): #有object就是新式类,没有object就是经典类,新式类修正了一 些bug。 def __int__(self): self.Fname = "ffff" print ("father.__init__") def Func(self): print 阅读全文
posted @ 2017-10-02 16:19 绿洲2017 阅读(154) 评论(0) 推荐(0) 编辑