https://img-mid.csdnimg.cn/release/static/image/mid/ask/448995293166144.jpg
code运行python,需要在launch.json中添加一个python的配置,右边debug标签中选择python后按F5才可以运行。如果安装多了code runner扩展,在代码中点右键,选code run就可以