Run command
ly@ubuntu:~$ python aa.py
Appeared BUG
SyntaxError: Non-ASCII character '\xe8' in file /home/aa.py on line 89, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
This is due to the Chinese in python file, and by default, not the Chinese, including Chinese translations will have this bug.
Modify the way: In the first line of the file add "#encoding: utf-8"; if the first acts of a python script # / usr / bin / python, then on the second line!.
File "/home/aa.py", line 375
def read_log(self, logmark):
^
IndentationError: unindent does not match any outer indentation level
This means that 375 are indented in error, to reprocess it like indent with the Tab key.
If the alignment is visible, then there may not be aligned with the Tab key, but aligned by spaces. Thus errors
https://www.cnblogs.com/heimanba/p/3783022.html (this gives bloggers how to use notepad clearly see where is the space and Tab)