1、re模塊的sub函數實現字符串替換 · pattern : 正則中的模式字符串。 · repl : 替換的字符串,也可為一個函數。 · string : 要被查找替換的原始字符串。
確定! 回上一頁