摘要:
写函数,,用户传入修改的文件名,与要修改的内容,执行函数,完成批了修改操作def modify_file(filename, old, new): # 定义函数 import os # 导入文件模块 with open(filename, 'r', encoding='utf-8') as f_read, \ open('txt', 'w', encodi... 阅读全文
posted @ 2018-12-02 22:38
赫晓蕊
阅读(118)
评论(0)
推荐(0)

浙公网安备 33010602011771号