Access variables inside a method (Python)

后端 未结 0 1913
隐瞒了意图╮
隐瞒了意图╮ 2021-01-20 09:20

How can I get access to a variable inside a method outside the class?

class alpha(): 
    c = 9
    def __inobjectit__(self, k):
        self.k = k
    def am         


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