re.sub使用替换函数
re.sub(pattern, repl, string, count=0, flags=0 )
Use function as repl
function will receive a match object as input parameter
Last updated
re.sub(pattern, repl, string, count=0, flags=0 )
Use function as repl
function will receive a match object as input parameter
Last updated