下载vscode的扩展“Python”查看一下这个扩展的官方说明DonJayamanne/pythonVSCode按照说明在调试的时候选择IntegratedTerminal/Console设置python目录:在用户设置里找到!