--- title: 110下學期 Py應用 預定課程 image: https://i.imgur.com/hfBqYPs.jpg --- # Python應用程式簡介與實作 ## 簡介 ~~因為掛了指導老師不開課好像不太好。~~ 本課程會以任務導向的方式教各位Python這個程式語言,一方面是可以知道自己所學可以用在哪裡,再者也能協助大家撰寫學習歷程。 Python是一種強調 <span class="b">可讀性及簡潔的語法</span> 的程式語言,比起C/C++和java能使用更少的code表達想法,因此一直以來是最受歡迎的語法之一。 課程大多為影片,可以依照自己方便的時間觀看,上課也會盡量錄製影片留存,有興趣但時間不方便可以補課。 ## 開始上課前你該做點準備 - 不必厲害,但請帶著熱忱 - 對程式語言稍微了解 - 至少知道python是一種程式語言 - 看得懂陳述式的運作(if-else, for-loop, while-loop...) - 學會問問題 - 文章分享:[How To Ask Questions The Smart Way](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way) - 學會google - 直接把問題丟給google - 翻成英文再試一次`` - 用引號包含 "關鍵字" - 用連字符找 two-word 的詞 - 用 :Scholar 找學術論文 - 用星號代替忘記的某*詞 - 用 related: 找相似的網站 - 如果師長反對你用電腦,請好好溝通,告訴他們你不全在玩 ## 課表&時間 本課程嘗試以 <span class="b">翻轉課程</span> 的方式授課,上課前學員要先觀看影片或閱讀講師要求的講義,上課時則以提問、討論與實作為主。 若遇連假停課,但仍有教材進度,有問題還是可以找我討論;段考前一周原則上停課。 週三社課是組內討論時間,請有能力的人協助還沒跟上進度的人,也可以分享自己做了甚麼酷炫的功能、找到了甚麼bug、發現甚麼邪教語法等等,給各位自行運用。 | 日期 | 課程內容 | 影片&講義(待補) | | ---- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | | 3/9 | <span class="b">社課</span> | | | 3/5 | 課程簡介與環境架設 | [影片](https://www.youtube.com/watch?v=jKy0LnObEBc&list=PLw_MKck885IGCqS-_FEF6o6OfsqKTrUWx&index=1)、[基礎語法講義](/@magical/Python) | | 3/12 | 陳述式、字串處理 | [第一週講義](/@magical/Python-L1) | | 3/16 | <span class="b">社課</span> | | | 3/19 | class介紹、專案一架構及要求公布 | [第二週講義](/@magical/Python-L2) | | 3/26 | <span class="r">段考前停課</span> | | | 4/2 | class(續)、(連假不上課) | [第三?週講義](/@magical/Python-L3) | | 4/6 | <span class="b">社課</span> | | | 4/9 | 完成專案一(班排+講師期中考不上課) | | | 4/16 | 檔案處理 | | | 4/23 | 檔案處理(續)、專案二架構及要求公布 | | | 4/27 | <span class="b">社課</span> | | | 4/30 | 專案二詳細介紹、網路架構簡介 | | | 5/7 | <span class="r">段考前停課</span> | | | 5/14 | 網路爬蟲 | | | 5/21 | 網路爬蟲(續)、正規表達式 | | | 5/28 | 協同、裝飾器 | | | 6/4 | API(連假不上課) | | | 6/8 | <span class="b">社課</span> | | | 6/11 | 完成專案二(講師期末考不上課) | | | 6/15 | <span class="b">社課</span> | | | 6/18 | 彈性週、成果分享 | | <style> .b { color: blue; } .r { color: red; } </style> ## 課程細節 #### 課程簡介與環境架設 - Python 簡介 - [Anaconda](https://www.anaconda.com/products/individual) 介紹與安裝 - Anaconda == Python懶人包 - [VScode](https://code.visualstudio.com/) 安裝 - Visual Studio Code - 文本編輯器 - 各種強大好用的擴充功能 - [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) - [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) - [Chinese (Traditional) Language Pack](https://marketplace.visualstudio.com/items?itemName=MS-CEINTL.vscode-language-pack-zh-hant) - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - [Color Highlight](https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight) #### 陳述式 - [if...elif...else](https://docs.python.org/zh-tw/3/reference/compound_stmts.html#the-if-statement) - [for loop](https://docs.python.org/zh-tw/3/reference/compound_stmts.html#the-for-statement), [while loop](https://docs.python.org/zh-tw/3/reference/compound_stmts.html#the-while-statement) - [continue](https://docs.python.org/zh-tw/3/reference/simple_stmts.html#the-continue-statement), [break](https://docs.python.org/zh-tw/3/reference/simple_stmts.html#the-break-statement), [pass](https://docs.python.org/zh-tw/3/reference/simple_stmts.html#the-pass-statement) - [try...except](https://docs.python.org/zh-tw/3/reference/compound_stmts.html#the-try-statement) - 各種ERROR介紹 #### 字串處理 - string, list, tuple, map... - string's method - 格式化字串、f-string #### class 類別 [參考資料](https://docs.python.org/zh-tw/3/tutorial/classes.html) - 底下的資料叫**屬性** - 底下的函式叫**方法**(method) - 可以用來讓程式好讀、好懂、看起來更厲害 - 繼承 #### 檔案處理 - file IO - csv - json - pickle #### 網路爬蟲 - "網路"簡介 - URL - HTTP request, response - HTTP method - 爬蟲簡介 - 回傳值的處理 #### 正規表達式 - 正規表達式介紹 - re #### 協同 - 同步與異步 #### 裝飾器 - 好吃的語法糖 #### API - [API(應用程式介面)是甚麼](https://medium.com/codingbar/api-%E5%88%B0%E5%BA%95%E6%98%AF%E4%BB%80%E9%BA%BC-%E7%94%A8%E7%99%BD%E8%A9%B1%E6%96%87%E5%B8%B6%E4%BD%A0%E8%AA%8D%E8%AD%98-95f65a9cfc33) --- ### 專案一 Pong! - 熟悉Python - 了解Python開發環境 - 錯誤處理 - 經典遊戲實作 - 熟悉class的基本語法 - 認識物件導向程式設計 ### 專案二 Chat bot~ - 也許是DCbot --- ### 學習資源 - [Python 語言參考手冊](https://docs.python.org/zh-tw/3/reference/) - [Python 教學](https://docs.python.org/zh-tw/3/tutorial/index.html) ### 參考資料
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up