摘要:
Python正则表达式的用法字符串替换1.替换所有匹配的子串用newstring替换subject中所有与正则表达式regex匹配的子串 result, number = re.subn(regex, newstring, subject)2.替换所有匹配的子串(使用正则表达式对象)reobj = ... 阅读全文
posted @ 2011-11-17 15:40
Eaglezzb
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号