使用Visual Studio Code编辑python脚本,如果有多个python环境则可以设置python路径

  设置方法如下

  在Vs code的左下角点击设置运行的python版本

Visual Studio Code修改运行的python版本_python