如果我正确理解了你的问题,你就不能把绳子换掉吗? with open(title, 'w') as f: f.write(res.replace("Â¥rÂ¥n","Â¥n"))
with open(title, 'w') as f: f.write(res.replace("¥r¥n","¥n"))