1,安装python3

2,安装vscode

3,vscode安装python插件

打开vscode扩展

mac vscode配置python环境

搜索python扩展(microsoft)

mac vscode配置python环境

4,配置工作区

在自己的工作目录创建一个文件夹,这里暂命名为 vspython

mac vscode配置python环境

选择 vspython 文件夹作为工作文件夹,然后创建一个测试文件 test.py

mac vscode配置python环境

mac vscode配置python环境 

mac vscode配置python环境

运行测试文件

mac vscode配置python环境

第一运行时会选择调试配置,选择“Python文件”

mac vscode配置python环境

 

相关文章:

  • 2021-07-24
  • 2021-10-30
  • 2021-08-19
  • 2021-11-04
  • 2021-08-18
  • 2021-11-04
猜你喜欢
  • 2021-11-09
  • 2021-10-12
  • 2021-11-04
  • 2021-11-11
  • 2021-08-07
  • 2021-08-07
  • 2021-09-02
相关资源
相似解决方案