Python 的sub和replace的区别
没搞清这
test = re.sub('abd','adg','abdsss')
test = 'adgsss'
好使
new = '/a.html'
old = '/help/index.jsp?topic=/com.ibm.lotuslive.files.doc/documents_viewer_Files.html'
line = '"text_helpurl" : "/he
原创
2012-08-15 13:48:42 ·
7221 阅读 ·
2 评论