摘要: #文件内容替换操作import osold_str = '不要回答!'new_str = '绝对不能回答!'f = open('test_file','r',encoding='utf-8')new_f = open('file_new','w',encoding='utf-8')for i in 阅读全文
posted @ 2019-12-23 21:49 nick_xm 阅读(114) 评论(0) 推荐(0) 编辑