生产有文件,需要在指定的分隔符换行
f = open(r'D: estip.txt','rb') w = open(r'D: estip1.txt','wb') for line in f.readlines(): line = line.replace(')',") ") w.write(line) f.close() w.close()