vsCode编写python代码运行时,结果在终端显示,但是里面结果显示不清楚,有多余信息,那么如何只输出代码结果呢?
点击启动调试,点击下图红圈位置
,出现launch.json文件,修改launch.json中的console,因为 none 不是 ''console'' 的默认选项, 根据 launch.json 里面对应参数的提示 ''console'' 的参数有三个选项: internalConsole, integratedTerminal, externalTerminal.所以如果想让python运行时有干净的输出, ''console'' 的参数可以换成 ''internalConsole'', 即
