Python 的re模块提供了re.sub用于替换字符串中的匹配项。 语法: re.sub(pattern, repl, string, count=0, flags=0). 参数:. pattern : 正则中的模式字符串。
確定! 回上一頁