What’s Python?
Why learning Python?
Advantage
- easy to learn
- expressive
- readable
- huge built-in functionality library
- cross-platform language
- open source
- widely used
Disadvantage
- slower (compared to compiled languages)
- new language
- Python doesn’t have too much support for mobile devices
- Supplementary Information: compiled language v.s. interpreted language
How to download Python?
Python
- Windows:本身沒有Python,要自行安裝。
- MacOS:預設有安裝Python2.7,但這堂課需要使用Python3。
- Supplementary Information
-
直接前往Python官網下載(不推薦)
只會下載Python本身。
Welcome to Python.org
-
前往Anaconda下載
除了下載Python,還會下載與Python相關的development package。
Anaconda | The World's Most Popular Data Science Platform
Windows:安裝過程中,在「Advanced Installation Options」頁面下,將選項「Add Anaconda3 to my PATH environment variable」打勾→不須自行設定環境變數。
Note:查詢電腦中Python的版本。
Python
v.s. Python3
Code Editor 程式碼編輯器 - Visual Studio Code (VS Code)
Visual Studio Code - Code Editing. Redefined
安裝過程中,在「選擇附加的工作」頁面下,將選項「加入PATH中(重新啟動後生效)」打勾→不須自行設定環境變數。