本篇文章介紹Python 標準程式庫的re 模組。 ... sub(pattern, repl, string, count=0, flags=0), 依據pattern 及repl 對string 進行處理,結果回傳處理過的新字串。
確定! 回上一頁