You have two meow
meaning two separate things in your code. It conflicts.
Change either
def meow(self,snack):
To something else. like
def meowFunction(self,snack):
Or change
def __init__(self,breed,color,meow,name):
self.breed = breed
self.color = color
self.meow = meow
self.name = name
To something else like:
def __init__(self,breed,color,catSound,name):
self.breed = breed
self.color = color
self.catSound = catSound
self.name = name
Two things should not be named the same thing. The compiler/interpreter will get confused and error out.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…