Python 3 - How to get *updated* instance variable from parent class?

前端 未结 0 888
走了就别回头了
走了就别回头了 2021-01-30 04:43

Here is what I\'m trying to do:

class Parent:
    def __init__(self):
        self.parent_var = \'initial value\'

    def update_now(self):
        self.parent_v         


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