2021年7月16日

python文件操作

摘要: import os 1、简单的写 # 不占内存修改文件old_file = '作文.txt'new_file = '作文.txt.new'f = open(old_file, "r")f_new = open(new_file, "w") old_str = "happy"new_str = "ha 阅读全文

posted @ 2021-07-16 11:39 星星眨着眼 阅读(24) 评论(0) 推荐(0) 编辑

导航