Error message collation comes from the Python experience class

Common errors report errors

SyntaxError: unexpected EOF while parsing

  • Syntax error: Too many symbols that cannot be parsed

SyntaxError: invalid character in identifier

  • Syntax error: Invalid identifier

IndexError: list index out of range

  • Index error: out of index range

TypeError: must be str, not int

  • Data type error: This data is not of the correct data type

IndentationError: expected an indented block

  • Formatting error: indent error

KeyError: ‘fond’

  • Key error, the dictionary does not have the value of this key

ValueError: substring not found

  • Value error. The input data type does not meet the requirement

NameError: name ‘a’ is not defined

  • The variable is not defined

AttributeError: ‘tuple’ object has no attribute ‘remove’

  • Property error: The object does not have this property, method

SystemExit

  • The interpreter requests exit, which appears after the exit() function

IOError

  • The input/output operation failed

ImportError

  • Failed to import the module or object. Procedure

UnicodeDecodeError/UnicodeEncodeError/UnicodeTranslateError

  • Error in Unicode decoding/encoding/converting /