使用 visual studio code 開發 python Reference

  1. 安裝 Python
  2. 安裝 Visual Studio Code
  3. 安裝 Python Extension

安裝 Python

  1. 勾選 Add Python 3.7 to PATH → 點選 Install Now
    Architecture

  2. 點選 Disable path length limit
    Architecture

  3. 開啟 cmd → 輸入 python -v 查看版號
    Architecture

Visual Studio Code 安裝 Python Extension

  1. 開啟 VS Code
    Architecture

  2. 安裝 Python Extension
    Architecture

  3. 有未安裝的訊息,點選安裝
    Architecture

  4. 重啟 VS Code

撰寫 Hello World

  1. 新增資料夾
    Architecture

  2. VS Code 開啟資料夾
    Architecture
    Architecture

  3. 新增 HelloWorld.py 檔案
    Architecture

  4. 開啟 Terminal
    Architecture

  5. 撰寫 Hello World
    Architecture

  6. 執行程式
    Architecture

Reference

Getting Started with Python in VS Code