Python OOP only initialise object if function arguments are met

后端 未结 0 1688
抹茶落季
抹茶落季 2021-01-02 04:50

How would I only allow an object to be created if the arguments are met? I tried using error handling but the object still gets created regardless of the value inputted.

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