# 中大微積分作業 VSCode 安裝教學 :::info (for 科學班學生) Python 作業的 Deadline 等訊息,要上 eeclass 看 https://ncueeclass.ncu.edu.tw/ 帳號:`學號` 密碼:`身分證` 交作業用的 數學系Python學習網站 http://python.math.ncu.edu.tw/ 帳號:`學號@cc.ncu.edu.tw` 密碼:`NCU+學號末五碼` ::: # Install Python 1. [Download Python (be sure to select the right build for your OS).](https://www.python.org/) ![](https://hackmd.io/_uploads/BJNyTPz-T.png) 2. **VERY IMPORTANT: Check `USE admin pri ... py.exe` AND `Add Python.exe to PATH`** ![](https://hackmd.io/_uploads/r1J7TPz-a.png) # Install VSCode 1. [Download and install VSCode (be sure to select the right build for your OS).](https://code.visualstudio.com/) ![](https://hackmd.io/_uploads/Bkx5tvzW6.png) 2. Install Python extension in VSCode. ![](https://hackmd.io/_uploads/Hk8N9wGW6.png) 3. (Optional) Install Traditional Chinese extension. 4. Open a folder (empty and no Chinese in path is recommended). ![](https://hackmd.io/_uploads/BkiI5DMbT.png) 5. Create a file with `.py` file extension. ![](https://hackmd.io/_uploads/HkhWiDzb6.png) 6. Reboot you PC. 7. Open terminal. Windows: `Win` + `R`. 8. Run `pip install matplotlib` and `pip install numpy`. ![](https://hackmd.io/_uploads/BJ7nxdzWp.png) 9. Write your code and execute it with `Run Python File`. **GOOGLE SEARCH YOUR ERROR MESSAGE before asking.** **Use matplotlib instead of pylab.** [Basic tutorial(Chinese)](https://steam.oxxostudio.tw/category/python/example/matplotlib.html) ![](https://hackmd.io/_uploads/rkI5oPfZp.png) # Submit your answer 1. Login to [中央數學 / Python 學習網站](https://python.math.ncu.edu.tw). 2. Click `教學專區` and find the right section. ![](https://hackmd.io/_uploads/SJfACDfb6.png) ![](https://hackmd.io/_uploads/BkRk1dM-p.png) 3. Submit your code.![](https://hackmd.io/_uploads/SJxKkuGZp.png)