The problem of Chinese garbled characters in VScode running code

The problem of Chinese garbled characters in VScode running code

Questions are as follows:

Insert image description here
Solution:
Add the system global variable PYTHONIOENCODING and set the value to UTF8

Steps: Computer—right-click Properties—Advanced System Settings—Environment Variables—New—Set the variable name PYTHONIOENCODING—The variable value is UTF8

Insert image description here

Insert image description here

Guess you like

Origin blog.csdn.net/m0_46374969/article/details/134022229