Can you make a class attribute a specific instance of that class within the class definition?

前端 未结 0 616
离开以前
离开以前 2021-01-31 06:09

Was wondering if there was a way to set a class attribute to a specific instance from within the class definition. For example,

class Value:
    def __init__(self         


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