Python 3.x 如何使程序不';t打印与我创建的列表相对的默认列表

Python 3.x 如何使程序不';t打印与我创建的列表相对的默认列表,python-3.x,Python 3.x,我写这个程序是为了用python打印出一个自定义的狗配置文件,但是它一直打印出默认的狗配置文件,请帮助 class dog: dogName = 'Mark' dogGender = 'boy' dogAge = 1 dogDiseased = False DogProfile = [dogName, dogGender, dogAge, dogDiseased] @staticmethod def CreateDog(dogName,

我写这个程序是为了用python打印出一个自定义的狗配置文件,但是它一直打印出默认的狗配置文件,请帮助

class dog:

    dogName = 'Mark'
    dogGender = 'boy'
    dogAge = 1
    dogDiseased = False
    DogProfile = [dogName, dogGender, dogAge, dogDiseased]

    @staticmethod
    def CreateDog(dogName, dogGender, dogAge, dogDiseased):
        DogProfile = [dogName, dogGender, dogAge, dogDiseased]

    def SeeDog(self):
        print(DogProfile)

John = dog

John.CreateDog('John', 'boy', 3, True)
John.SeeDog(John)