[程式設計的壹貳參肆] Python的開發環境(Command Line)

Phoebe Huang
Jul 15, 2020

--

這系列文章也同時分享了C/C++JAVA的開發環境安裝,這篇主要是Python的環境安裝,如需其他語言的說明,請點以上連結進入文章唷!文章結束有QA大家不彷可以測試看看對Python的編譯了解到什麼程度唷!

[Python編譯環境安裝]

python 和 java 一樣都是透過虛擬機器環境來編譯的,安裝也相當的簡單,到官網下載(Downloads 右邊會有你的作業系統最新版本Python安裝)

官網下載頁面

安裝過程中,要勾選Add Python 3.8 to PATH和Install launcher for all users(recommended),選擇Customize Installation
確認的話就是 python -V 查看python 版本(V是大寫的唷!)

確認python是否安裝完成

[Python編譯與執行]

python 是個直譯語言:
Python is an interpreted language, which can save you considerable time during program development because no compilation and linking is necessary. The interpreter can be used interactively, which makes it easy to experiment with features of the language, to write throw-away programs, or to test functions during bottom-up program development. It is also a handy desk calculator.
資料來源:https://docs.python.org/3/tutorial/appetite.html

因此他不需要編譯的過程,而執行時需要注意的是你的python版本是什麼,若為python 2.XXX,則執行時指令為 python2 檔名.py;若為python 3.XXX,則執行時指令為 python3 檔名.py

[測試]

python 執行程式測試

[QA]

● python 是直譯語言還是編譯語言?
● python Command Line 執行時需要注意什麼?

喜歡我的文章的人也記得幫我按個拍手、分享,覺得很不錯的可以幫我拍個50下!
也要快點追蹤我的 FB粉絲專頁 — 飛比尋常的程式設計世界 ,不會太頻繁出現在你的塗鴉牆騷擾你,好文章生產需要一點時間,有錯誤或想討論的都歡迎留言給我唷!那就下次見拉!

--

--

Phoebe Huang
Phoebe Huang

Written by Phoebe Huang

A software engineer from Taiwan, use free time to learn more about computer science.

No responses yet