#!/usr/bin/env python # -*- coding: utf-8 -*- # author:albert time:2019/4/18 0018 class A: def say(self): print('A') class B(A): def say(self): # A.say(self) super().say() print('B') B().say()
#!/usr/bin/env python # -*- coding: utf-8 -*- # author:albert time:2019/4/18 0018 class A: def say(self): print('A') class B(A): def say(self): # A.say(self) super().say() print('B') B().say()
转载于:https://www.cnblogs.com/zzm-blog/p/10732084.html