1.下載與安裝Python
至Python官方網站找到Downloads,點選View the full list of downloads.

往下找到Looking for a specific release?,並點擊最新版本

往下找到Windows installer (64-bit),點擊後即可進行下載

將Add python.exe to PATH打勾,並點選Install Now


安裝完畢後點選Close即可

於電腦中搜尋python,找到IDLE並打開

看到以下畫面代表安裝成功

2.撰寫第一個程式
點選File->New File來建立新專案

於新視窗中打上以下程式碼
print("Hello World")

將檔案命名為hello_world.py另存新檔 (注意:附檔名需為.py)

選擇Run->Run Module

即可於剛剛的視窗中輸出結果

請先 登入 以發表留言。