解决方法:

1.  在settings.json 中添加 

 "code-runner.executorMap": {
        "python": "set PYTHONIOENCODING=utf8 && python -u"
    }

或者

2.  在python代码中加入

import sys,io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') 

  

 

相关文章:

  • 2021-10-24
  • 2022-01-24
  • 2021-06-04
  • 2022-03-02
  • 2022-01-10
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
猜你喜欢
  • 2021-08-28
  • 2021-06-11
  • 2022-12-23
  • 2021-11-04
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案