Why is the class attribute changing only once?

后端 未结 0 2051
無奈伤痛
無奈伤痛 2021-01-16 01:07
class Battlefield:
    def __init__(self):
        self.field = new_battlefield()
        self.amount_ships = 0
        self.ships = []
        self.fourdeck = []
           


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