@[python常见错误,未知错误,易忽略
python 调试,错误提醒TypeError: is_empty() takes 0 positional arguments but 1 was given
def is_empty(self): #class类后的self 丢了,编译器不能直接提示错误
return len(self.stack)==0
@[python常见错误,未知错误,易忽略
python 调试,错误提醒TypeError: is_empty() takes 0 positional arguments but 1 was given
def is_empty(self): #class类后的self 丢了,编译器不能直接提示错误
return len(self.stack)==0