エラーコードポータル
PythonPythonエラーコード

IndexError

IndexError

コード IndexError · Pythonが報告した問題です。

シーケンスの添字が範囲外の場合に発生します。 (スライス インデックスは、許可された範囲内に収まるように自動的に切り捨てられます。インデックスが整数でない場合は、TypeError が発生します。)

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the allowed range; if an index is not an integer, TypeError is raised.)

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。