Class function modifies all objects of the same class

前端 未结 0 944
别跟我提以往
别跟我提以往 2021-01-19 07:24

I made a small code to replicate the odd behavior I\'m experiencing

class A(object):
    def __init__(self, movelist = []):
        self.movelist = movelist

         


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