期末考-1112405053-黃柏翰 - #1325
Open
LuLu-1203 wants to merge 3 commits into
Hidden character warning
The head ref may contain hidden characters: "0622-1112405053-\u9ec3\u67cf\u7ff0"
Open
期末考-1112405053-黃柏翰#1325LuLu-1203 wants to merge 3 commits into
LuLu-1203 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本次 Pull Request 新增了 4 個第 2 週作業的 Python 解題程式(1one.py、2two.py、3three.py、4four/search_eval.py、4four/plot.py),對應學號 1112405053,並附上每一題的 AI 產生函式設計文件(AI_LOG_1.md~AI_LOG_4.md)。
這些程式涵蓋資料處理、編碼轉換、進位轉換、搜尋演算法與視覺化分析;AI_LOG 文件則詳述函式簽章、參數型別、邊界條件、例外處理與使用範例。
最重要的變更如下:
解題實作
新增 1one.py:處理輸入文字以擷取整數、統計重複次數、輸出序列資訊,並以遞增順序輸出可被 5 整除的唯一數字。
新增 2two.py:實作 Caesar 密碼,將所有英文字母位移 4 個字元,保留大小寫與非英文字元。
新增 3three.py:將整數轉為 3 進位後,反覆加總各位數直到成為個位數,並同時提供 CLI 與 Tkinter GUI 介面。
新增 4four/search_eval.py:實作並比較線性搜尋與二元搜尋,統計比較次數並量測執行時間。
新增 4four/plot.py:建立雷達圖比較線性搜尋與二元搜尋在多個面向的表現,並將圖檔儲存為 assets/radar.png。
文件
新增 AI_LOG_1.md~AI_LOG_4.md:針對每個解題程式提供完整函式設計說明,包括函式簽章、參數/回傳型別、輸入邊界、例外處理、邊界案例分析與使用範例。 [1] [2] [3] [4]