python正则替换,很方便
import rewith open('E:/阿萨德.txt', 'r', encoding='utf=8') as f: data = f.read() newdata = re.sub( '<AuditDisabled>[\s\S]*?</AuditDisabled>', '<AuditDisabled>1</AuditDisabled>', data) with open('e:/te.txt', 'w', e
原创
2021-04-23 13:58:22 ·
110 阅读 ·
0 评论