你好,我在运行你的代码时候报错KeyError:' ', 这种是怎么回事呀? if isinstance(text, str): text = [self.dict[item] for item in text]