Python common small problems

Question 1: No module named XXX.yyy

The reason for this problem may be that the __init__.py file is missing in the XXX directory, which only needs to be an empty file.

 

问题二:Non-ASCII character '\xe5' in file XXX on line yyy, but no encoding declared

Because of the Chinese encoding problem, just add #coding=utf-8 to the first line of the file.

 

Guess you like

Origin blog.csdn.net/u011939633/article/details/95767753
Recommended