Passing self in subclass __init__ allows avoiding inheritance of attributes

前端 未结 0 1163
暖寄归人
暖寄归人 2021-01-28 00:46

I was trying to partially inherit attributes from superclass and I noticed this strange behavior in the subclass: if I repeat self as many times as the attributes I have in supe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题