摘要: f.write(rf.replace(' ','')) f.write(rf.replace('1041','\n1041')) 不能连续起作用? # -*- coding: UTF-8 -*- import os f= open('E:\\Python\\Code\\line0408b.txt', 'r') #读取文件 rf=f.read() #rf=f.read().decode('UT... 阅读全文
posted @ 2016-04-08 17:04 南湖鹄 阅读(2058) 评论(0) 推荐(0) 编辑