The problem of Chinese garbled characters in VScode running code
Questions are as follows:
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