摘要:
单继承下的属性查找 问题1 class Foo: def f1(self): print('Foo1') def f2(self): ptint('Foo2') self.f1() class Bar(Foo): def f1(self): print('Bar1') obj = Bar() obj 阅读全文
posted @ 2021-07-14 21:28
麋鹿的麋
阅读(42)
评论(0)
推荐(0)
摘要:
绑定方法 1.绑定给对象的 2.绑定给类的 绑定给对象 class Student(): country = 'CHINA' def __init__(self,name,age): self.name = name self.age = age def tell_info(self): print 阅读全文
posted @ 2021-07-14 08:47
麋鹿的麋
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号