如:re.sub(r'/s', lambda m: '[' + m.group(0) + ']', text, 0);将字符串中的空格' '替换为'[ ]'。 2、re.compile. 可以把正则表达式编译成一个正则表达 ...
確定! 回上一頁