摘要: 1. 第一种修改方式: 将文件的内容全部加载到内存中进行修改,改完后加载到硬盘。 1 #!/usr/bin/env python 2 # encoding: utf-8 3 4 f = open(file = 'old_file.txt', mode = 'r+', encoding = 'utf- 阅读全文
posted @ 2018-03-26 09:23 落叶心声 阅读(547) 评论(0) 推荐(0) 编辑

Contact with me