python创建对象后调用对象的方法,报错TypeError: getName() takes 0 positional arguments but 1 was given

NoSuchKey