Code-Python (tc)
13 Docs
Class (tc)
Last Updated: 2026-09-15Python class 的基本概念——class 是 object 藍圖,裏面有 attributes 和 methods,還說明 class/instance variable 和 method 的分別。
Class 繼承與覆寫 (tc)
Last Updated: 2026-09-15Python class 繼承(extend)與覆寫方法(override)的完整範例——Manager 繼承 Employee 並改寫 get_employee_info,Department 用 class method 管理員工。
dataframe-quick-inspection-helper (tc)
Last Updated: 2026-09-15快速檢查 DataFrame:head()、tail()、info()、describe() 四個方法。
dataframe-transform (tc)
Last Updated: 2026-09-15pandas 的 transform() 把每組結果貼回每一列,加 headcount、平均 salary、總 bonus 三欄。
datatype-dictionary (tc)
Last Updated: 2026-09-15字典(dictionary):key:value 儲存——取值、.items() 逐個讀、value 是 list、keys 變 list、_ 做 key。
datatype-tuple (tc)
Last Updated: 2026-09-15tuple(元組)是 Python 一種有順序、不可變的集合,用圓括號 () 寫。它像 list,但建立之後就不能改動。
Loop-for loop 迴圈 (tc)
Last Updated: 2026-09-15Python for 迴圈的 8 個漸進範例:從 range() 基本用法到列表推導(list comprehension)。
