1. 类的定义super 1. 类的定义Python2中需要继承object # 默认, Python 3class A: pass# Python 2class A(object): pass super# 默认,Python 3class B(A): def add(self, x): super().add(x)# Python 2class B(A): def add(self, x): super(B, self).add(x)