儲蓄保險王 Blog
Python 自省 (Introspection) 實戰:教你如何讓程式碼「自我介紹」; func_name = sys._getframe().f_code.co_name ; inspect.currentframe().f_code.co_name
# Python 自省 (Introspection) 實戰:教你如...
Python 正則表達式完全指南:貪婪 (Greedy) vs 非貪婪 (Lazy) ; .* vs .*? Python 正規表示式的非貪婪(lazy / non-greedy)模式,原則上是把 ? 加在「量詞」後面。常見量詞* + ? {n,m} {n,} 都可以
在資料處理、網頁爬蟲或 LLM 輸出解析中,我們常看到 .*? 這樣...
Python x Ollama 超越傳統 OCR:使用MiniCPM-V 打造精準 AI 視覺辨識引擎 #CPM: Chinese Pre‑trained Model
# 超越傳統 OCR:使用 Ollama + MiniCPM-V 打...
「Python 的兩條路」:一次搞懂 sys.path (找 .py) 與 os.environ[‘PATH’] (找 .exe) 的愛恨情仇
在 Python 開發過程中,你一定遇過以下兩種令人抓狂的錯誤: 雖...
Python-docx 圖片提取完全指南:從 rId 到二進位資料的探險rid ; part = doc.part.rels[rid].target_part #return part.blob if “ImagePart” in type(part).__name__ else None
Deep Dive into extract_image_bytes...

近期留言