在Python 中,要使用regex 並不難,已經內建在標準庫裡頭了,只要引入「re」模組即可 ... 像是字串中的「小雞」是換成「小肥雞」,最直覺的做法就是使用replace 函式:.
確定! 回上一頁