错误代码门户
PythonPython错误代码

LookupError

LookupError

代码 LookupError · Python 报告的问题。

当映射或序列上使用的键或索引无效时引发的异常的基类:IndexError、KeyError。这可以直接由 codecs.lookup() 引发。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError. This can be raised directly by codecs.lookup().

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。