Python 3.7.3 shell 中, SyntaxError: unindent does not match any outer indentation level if是顶格写的,elif或else也需要顶格写,这样就可以了。