1.打开vs code点击Ctrl+Shift+x,在扩展插件界面搜索python然后安装

VSCode开发调试Python

 

2.编写test.py文件

VSCode开发调试Python

 

3.点击F1或者Ctrl+Shift +p,选择python:Select Interpreter

VSCode开发调试Python

 

4.选择使用的python编译器

VSCode开发调试Python

 

 5.选择成功后,就可以点击F5运行你的Python程序了

 

相关文章: