Is there a static constructor or static initializer in Python?

后端 未结 6 756
星月不相逢
星月不相逢 2020-12-17 07:56

Is there such a thing as a static constructor in Python?

How do I implement a static constructor in Python?

Here is my code... The

6条回答
  •  一个人的身影
    2020-12-17 08:13

    You need to instantiate your App, then use that instead:

    myApp = App()
    myApp.EmailQueue.DoSomething()
    

提交回复
热议问题