"Ask a question", when writing Python, when you run a script with Chinese output or comments, you will be prompted with an error message:
Syntaxerror:non-ascii character ' \xe5 ' in file *******
----------------------------------------------------------------------------------------------------------
"Analyzing Problems",
----------------------------------------------------------------------------------------------------------
Python's default encoding file is ASCII code, and your Python file uses non-English characters such as Chinese
----------------------------------------------------------------------------------------------------------
"Problem Solving",
In the first line of the Python source file, add a sentence:
# coding=utf-8 (equal sign for ":" can also)
Or
#-*-Coding:utf-8-*-
Python coding error Resolution SYNTAXERROR:NON-ASCII character ' \xe5 ' in file