摘要: 文件修改一行的方法: with 结束后关闭打开的文件 with open('文件','r',encoding='') as f,\ open('新建一个文件','w',encoding='') as f_new: for line in f: if update_content in line : 阅读全文
posted @ 2018-02-05 09:20 孤月灵声 阅读(155) 评论(0) 推荐(0) 编辑