When is it acceptable to declare an instance attribute outside “__init__()”?

后端 未结 0 384
予麋鹿
予麋鹿 2021-02-15 00:18

I will start by describing the dilemma I\'m currently facing. I\'ve a class (let\'s call it NeatClass). It has several instance attributes, all of which I declare,

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