python文件内容修改1
摘要:
#!/usr/bin/env python # -*- coding: UTF-8 -*- def alter(file,old_str,new_str): file_data = "" with open(file, "r", ) as f: for line in f: if old_str in line: ... 阅读全文
posted @ 2018-08-04 16:41 水底的小鱼鱼 阅读(154) 评论(0) 推荐(0)
浙公网安备 33010602011771号