Python on svcode

Python 環境安裝

  1. 選擇"自定義安裝"
  • 照著圖片的內容去勾選

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

  1. 環境測試
  • [HOME+R] 開啟powershell 或 cmd

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

  • 輸入
python --version

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

  • 如果有出現
Python X.XX.X

字樣就是成功了

vscode 環境架設

  1. 安裝debugger
  • [ctrl+shift+x] 開啟extension分頁
  • 輸入
@installed python debugger

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

  • 安裝

開始進入Python世界

  1. 建立一個.py檔案

  2. 撰寫簡單的code

print("Hello, World!")
  1. 執行
  • [ctrl+shift+`]開啟終端機(terminal)
  • 輸入
python 檔案名.py

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →