我经常在覆盖子类中的方法时执行此操作:
def method_x(self): x = super(type(self), self).method_x() [Some extra code] return x
我的问题是:超级(类型(自我),自我)是否有捷径?
python
python ×1