🌈 搜索
📅  最后修改于: 2022-03-11 14:45:15.351000             🧑  作者: Mango
with open('outputFile', 'r+') as f: text = f.read() f.seek(0) f.truncate() f.write(text.replace('(comma)', ' , '))