在菜单Debug->Open Configurations,打开launch.json,新增如下粉红色字符内容:

{
    "configurations": [        
        {
            "name": "Python: 当前文件",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "env":{
                "PYTHONIOENCODING":"gbk"
            }
        }
    ]
}

 

来源:https://www.cnblogs.com/airscrat/p/12067480.html

相关文章:

  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2021-04-27
  • 2022-01-09
  • 2022-01-13
  • 2021-07-28
  • 2021-04-10
相关资源
相似解决方案