看板 Python 關於我們 聯絡資訊
re的flags=是可省略的吧? 參數寫flags=re.I跟只寫re.I應該是一樣的吧? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 107.170.218.199 (美國) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1588507132.A.D1B.html
TuCH: 因為re的某些fun只吃3個參數 第三個參數就是flags 不寫剛好 05/03 20:27
TuCH: 預設帶flags 05/03 20:28
shala: 我遇到不一樣的output,還沒找到原因 05/03 23:20
TuCH: po一下程式碼 很難隔空抓藥 05/04 22:29
s860134: 這和 re 無關,這是 keyword arguments 和 position arg 05/05 21:15
s860134: uments 的概念 05/05 21:15
s860134: 你應該要知道 signature 05/05 21:17