python IDLE appears as a backslash in the yuan symbol ¥

Python comes with the IDE is IDLE, the most simple, but requires the use of the country's two IDE.

The IDE relative to other more advanced IDE, such as Visual Studio Code PyCharm and other functions very clearly weak. However, it is to deal with two Python exam is already more than enough.

problem

Now encountered in its built-in command line environment is a small problem: backslash symbol display RMB ¥, regardless of the current input method is English or Chinese input method. Referring next to FIG:
python IDLE appears as a backslash in the yuan symbol ¥

Analysis and Solution

After testing found through the menu command "Options" - "Configure IDLE", the current editing environment font change it (the proposed multi-test in a variety of English fonts) to remove the display (error). Please refer to the following chart:

python IDLE appears as a backslash in the yuan symbol ¥

I became the replacement of the current font "MS Sans Serif", can be realized as to correct an error in the title of this article suggests, as shown below:
python IDLE appears as a backslash in the yuan symbol ¥

Guess you like

Origin blog.51cto.com/zhuxianzhong/2424191