Add # -- coding: utf-8 -- to the header of each python file to indicate that the python interpreter uses UTF-8 encoding for the character processing set in this file.
When you input Chinese characters, make sure your Sogou input method is not in full-width mode. The Chinese character set should be set to half-width mode
Add # -- coding: utf-8 -- to the header of each python file to indicate that the python interpreter uses UTF-8 encoding for the character processing set in this file.
When you input Chinese characters, make sure your Sogou input method is not in full-width mode. The Chinese character set should be set to half-width mode
There is no way around it. It works in XP or Win7. This phenomenon also occurs when I use Win8.