At the beginning of Python file, the first line of code, there are two writing:
1, using # coding = UTF-8 (equal sign may be changed to ":")
2, or # - - Coding: UTF-. 8 - -
Note: python default encoding files are ASCII code used, there is no such error in Python 3.X in.