欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

在VS Code上搭建Python開發(fā)環(huán)境的方法

 更新時(shí)間:2018年04月06日 15:24:01   作者:cto_ouxueying  
這篇文章主要介紹了在VS Code上搭建Python開發(fā)環(huán)境的方法,需要的朋友可以參考下

1、下載安裝 python https://www.python.org/downloads/windows/

web-based installer 在線安裝
executable installer exe安裝
embeddable zip file 內(nèi)嵌版本

python的安裝步聚可以參考http://www.dbjr.com.cn/article/136324.htm,注意安裝后配置 path

2、下載安裝VS Code https://code.visualstudio.com/Download

3、在VS Code里安裝 python 插件

1)ctrl + shift + p 輸入 ext install 選擇“Extensions:install extension” 回車

這里寫圖片描述
2) 再輸入 python
3)等待安裝成功

4、在vs code中配置運(yùn)行python程序的命令

1)ctrl + shift + p 搜索Configure Task Runner

這里寫圖片描述 

2)打開tasks.json
修改 Command “tsc” 為 “python”
修改 showOutput “silent” 為 “always”
修改 Arguments [“Helloworld.ts”] 為 [“${file}”]
刪除 最后的一行屬性 problemMatcher
保存更改

這里寫圖片描述 

下面是針對(duì)新版本的一些配置

{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "echo",
      "type": "shell",
      "command": "d:\\ProgramData\\Anaconda3\\python.exe",
      "args": [
        "1.py"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

因?yàn)槟_本之家小編么有將python添加到環(huán)境變量里面,直接給出了anaconda的命令。

3) 使用 ctrl + shift + B 執(zhí)行py程序文件

其實(shí)更多時(shí)候直接用F5就可以了,用戶配置

"python.pythonPath": "d:\\ProgramData\\Anaconda3\\python.exe"

相關(guān)文章

最新評(píng)論