APCS Python 101
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

"Either run for food, or run from being food."
-- Jen-Hsun "Jensen" Huang (1963-),
the co-founder of NVIDIA

``Programming is not about typing,
it's about thinking.''
-- Rich Hickey

"You don't have to be great to start,
but you have to start to be great."
-- Zig Ziglar

課程訊息

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

講者訊息

  • 盧政良 (Zheng-Liang Lu, Arthur)
  • 電子信箱:arthurzllu@gmail.com

工作環境

預備知識

學習目標

電子郵件通訊禮節

  • 電子郵件的標題 (Title) 需要註明班別中文姓名,並加上信件主旨,如:Python 413 金城武 作業繳交。
  • 利用電子郵件提問時,務必提供完整的訊息,諸如:問題敘述、曾經嘗試但是失敗的方案、可能的猜想等等。任何有助於了解問題的材料皆可附上,如程式碼、錯誤訊息的截圖。

評分標準 & 結業證書領取

  • 本課程有若干次的評量與一次的週末程式作業,於特定的章節內公布並在繳交期限當日進行檢討;完成課程及格條件的學員可獲頒證書。若有調整,以調整後的政策為主。
  • 領取證書的細節詳見訓練班公告網頁

課程錄影

  • 本課程除非經授課老師同意,學生不得擅自進行課程錄音錄影。
  • 若因無法出席而缺課或需要課後複習的學員,可自行前往 NTU COOL 進行補課。該網站的帳號密碼為學員在訓練班報名時登錄的帳號密碼。
  • 課程影片將會在課程結束後一週下架,需要複習的學員務必注意時程。

課程架構

第零回:導論 notebook

  • 課程要求
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 背景知識
    • 電腦如何運作? link
    • 資料如何保存? link
    • 什麼是演算法? link
  • Python 基本操作說明
    • 輸出輸入
    • 變數的使用
    • 字串的使用
    • 引用模組
    • 除錯

第一回:變數、資料型態、運算子 notebook

  • 二進位系統
  • 變數的使用與記憶體位址的概念
  • 資料型態:整數、浮點數、字串、布爾值
  • 指定運算子與記憶體模型
  • 算術運算子、關係運算子

第二回:資料結構 notebook

  • 清單 (list)
  • Tuple
  • 集合 (set)
  • 字典 (dictionary)
  • 進階概念:記憶體配置
    • 為什麼 list 與多數資料結構的第一個元素從 0 開始?
    • 淺拷貝 (shallow copy) 與深拷貝 (deep copy)
    • 破壞性操作與非破壞性操作

第三回:流程控制 notebook

  • 有條件的敘述
  • 重複的敘述
    • for 迴圈與 while 迴圈
    • 多層迴圈
  • Comprehension

第四回:函式 notebook

  • 定義新的函式
  • 匿名函式:lambda
  • 函式設計風格:map & filter
  • 函式與記憶體堆疊 (stack)
  • 遞迴 (recursion)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

第五回:演算法 notebook

第六回:例外處理與檔案處理 notebook

  • 例外處理:try-except-else-finally
    • 自定義例外
  • 檔案處理

第 X 回:專題討論

第七回:物件導向設計 notebook

  • 類別與物件
  • 封裝、繼承、多型
  • 模組與套件

第八回:進階議題 notebook

  • 私有成員
  • Magic Methods
  • 靜態成員
  • 修飾子
  • 產生器與迭代器
  • 平行程式 new

第九回:資料視覺化 notebook

最終回:Game of Life notebook

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

參考文獻

使用文件

大學課程

相關影片

免費教學平台/題庫

可以參考的書籍

跟課堂有關的電影/影集

與程式設計相關的遊戲

不分類

點名單暨成績簿