python 修改文件内容3种方法
摘要:一、修改原文件方式 1 def alter(file,old_str,new_str): 2 """ 3 替换文件中的字符串 4 :param file:文件名 5 :param old_str:就字符串 6 :param new_str:新字符串 7 :return: 8 """ 9 file_d
阅读全文
posted @ 2017-12-22 12:33
posted @ 2017-12-22 12:33
posted @ 2017-12-21 15:23
posted @ 2017-12-21 15:05
posted @ 2017-12-18 09:48
posted @ 2017-12-18 09:47
posted @ 2017-12-18 09:45
posted @ 2017-12-05 10:10