Loading

解决Win平台VSCode中Python在控制台输出中文乱码的问题

在菜单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

posted @ 2020-09-29 16:10  DuKe渡客  阅读(345)  评论(0编辑  收藏  举报