IndentationError: unindent does not match any outer indentation level 1.根据报错的行数,查看缩进是否正确 2.查看空格键和TAB键 在pycharm下,file——>settings——>editor——>code style——>python 格式都统一为空格键