摘要: Python3 环境下可以运行以下代码实现文本替换: with open(src0,"r") as f1: content = f1.read() t = content.replace(r'XXX',r'YYY') with open(src0,"w") as f2: f2.write(t) 但上 阅读全文
posted @ 2021-03-26 14:21 henkenen 阅读(152) 评论(0) 推荐(0) 编辑