From e4ca2e4ff38725614265c8315b2512d87e37d184 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 2 Jan 2022 09:53:53 +0800 Subject: [PATCH] save project --- diy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/diy.py b/diy.py index 0bc4b98..10f5355 100644 --- a/diy.py +++ b/diy.py @@ -16,6 +16,7 @@ with open(r'C:\Users\Administrator\Desktop\w.txt','r',encoding='utf-8') as file: data=data.replace('小强:10本','小强:11本') if '小兰:12本' in data: data=data.replace('小兰:12本','小兰:14本') + new_data+=data with open(r'C:\Users\Administrator\Desktop\w.txt','w',encoding='utf-8') as file: file.write(new_data) with open(r'C:\Users\Administrator\Desktop\w.txt','r',encoding='utf-8') as file: -- libgit2 0.25.0