How can I change one variable in class every time when another changes? Python

后端 未结 0 1867
耶瑟儿~
耶瑟儿~ 2020-12-16 02:59

Here is my code and I want the damage to change every time the level changes

class Item:
    __ids = count(0)

    def __init__(self):
        self.name = \'N         


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