阅读背景:

Python 3.x中整个文本文件的字符串替换?

来源:互联网 

How can I replace a string with another string, within a given text file. Do I just loop through readline() and run the replacement while saving out to a new file? Or is there a better way?How can I replace a string with another string,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: