從1990年初期Python開始發展至今,Python已是一個被廣泛使用且十分具有潛力的語言。不論是資料挖掘(data mining)與分析、人工智能(artificial intelligence)軟體與深度學習(deep learning)軟體等,處處可見python語言的蹤跡。因此做為一門大一新生的入門資訊課程,Python語言非常的適合。本課程由淺入深的向學生介紹Python語言,一學期的課程沒有辦法傳授眾多的內容,因此僅就基本的概念作介紹,希望修習過這堂課的學生能對Python語言產生興趣,並能自發的學習沒有教授過的部分,並對其本身的專業科目有所助益。
Since the first released in early 90s, Python has become a widely used computer language. Many applications in data mining, data analysis, artificial intelligence and machine learning are written with python code. Python language emphasizes code readability and simplicity, i. e. easy to read and learn. Therefore, Python is suitable as first-computer-language for freshman. We introduce python language step by step and with lots of hands-on exercise to make students familiar with python language.
先修科目Prerequisites
無,不過如果您能有任何程式語言的基礎會更好(或許您可以先自行安裝 Python 3 在您的電腦上)
It will be fine if you have any experience in computer language such as java, C++, ...etc.
教學方式Teaching Methods
講課
Lecturing
學生實作
Student hands-on practice
習題練習、書面報告
Exercise, Written report
評量方式Assessment
實作測驗
Practical exam
隨堂筆試測驗
In-class exam
課堂參與與表現
Class involvement
參考書目Reference
1. Marching onto the path of Python. Python 入門 洪錦魁著 深石出版社。
2. Python documentation http://docs.python.org/3/
教學進度Course Schedule
2020/10/09 認識變數與基本數學運算
1. 用Python做計算
2. 程式註解
3. 變數命名原則
4. 基本數學運算
5. 斷行
Variables and basic calculation
1. Using Python as a calculator
2. Program comments in Python
3. Variable names
4. Operator
5. String pan
董人銓(Tung, Jen-Chuan) 2020/10/16 資料型態
1. 何謂資料型態
2. 數值資料型態
3. 布林值資料型態
4. 字串資料型態
Data type
1. Introduction to data type in Python
2. Numeric type
3. Boolean type
4. String type and container type
董人銓(Tung, Jen-Chuan) 2020/10/23 基本輸入與輸出
1. Python的輔助說明
2. 格式化輸出
3. 輸出資料到檔案
4. 資料輸入
Basic input and output in Python
1. Python help
2. Input and output format
3. Date export
4. Data import
董人銓(Tung, Jen-Chuan) 2020/10/30 Python語言簡介
1. Python的起源與發展過程
2. Python3 安裝與執行
Introduction to Python language
1. Origin and Development of Python
2. Install Python 3 on Windows and Mac
董人銓(Tung, Jen-Chuan) 2020/11/06 程式的流程控制I
1. 關係運算子
2. 流程運算子
3. if 敘述
4. if … else與 if … elif … else敘述
5. 巢狀的if敘述
Flow control I
1. Comparison, arithmetic, and bitwise operator.
2. flow operator
3. if statement
4. if … else and if … elif … else statement
5. Nested statement
董人銓(Tung, Jen-Chuan) 2020/11/13 實例演練
Hands-on practice
董人銓(Tung, Jen-Chuan) 2020/11/20 串列的概念(List) I
1. 認識串列
2. 物件導向的概念
3. 獲得、增加與刪除串列的方法
List I
1. Introduction to list
2. Object-oriented
3. Obtain, add and delete list
董人銓(Tung, Jen-Chuan) 2020/11/27 串列的概念(List) II
1. 串列的排序
2. 進階串列操作
3. 串列拷貝
4. 再談串列
List II
1. Sorting list
2. More list operators
3. Copy list
4. More about list
董人銓(Tung, Jen-Chuan) 2020/12/04 期中考
Midterm
董人銓(Tung, Jen-Chuan) 2020/12/11 程式的流程控制 II
1. 基本for迴圈
2. range( ) 函數
3. 實例演練
Flow control II
1. For statement I
2. Range( ) function
3. Hands-on practice
董人銓(Tung, Jen-Chuan) 2020/12/18 程式的流程控制 III
1. 進階for迴圈
2. while迴圈
3. 實例演練
Flow control III
1. For statement II
2. While statement
3. Hands-on practice
董人銓(Tung, Jen-Chuan) 2020/12/25 元組(Tuple)的概念
1. 元組的定義與讀取
2. 如何修改元組元素
3. 串列與元組資料互換
4. 其他常用的元組方法
Tuple
1. Definition of Tuple
2. Reading and writing Tuple
3. List and tuple
4. Tuple operation
董人銓(Tung, Jen-Chuan) 2021/01/01 認識字典(Dict)
1. 字典基本操作
2. while在字典的應用
3. 字典常用的函數與方法
Dict
1. Dict type
2. Using while in dict
3. Functions about dict
董人銓(Tung, Jen-Chuan) 2021/01/08 認識集合(Set)
1. 建立集合
2. 集合的操作
Set
1. Creating set
2. Set operation
董人銓(Tung, Jen-Chuan) 2021/01/15 函數(function)設計 I
1. Python函數的基本觀念
2. 函數的參數設計與函數值回傳
3. 參數值是串列的函數設計
Function I
1. Python function
2. Writing your first python function
3. Python arguments
董人銓(Tung, Jen-Chuan) 2021/01/22 函數(function)設計 II
1. 傳遞任意數量參數的函數
2. 遞迴函數
3. 區域變數與全域變數
4. 匿名函數
Function II
1. Passed by assigment
2. Recursive function
3. Local and global variable
4. Lambda function
董人銓(Tung, Jen-Chuan) 2021/01/29 放假
Holiday
董人銓(Tung, Jen-Chuan) 2021/02/05 期末考
Final exam
董人銓(Tung, Jen-Chuan)