Commit 5657c36d by BellCodeEditor

save project

parent 5021ae19
Showing with 1 additions and 1 deletions
......@@ -15,7 +15,7 @@ with open(r"C:\Users\玛酷市南1号\Desktop\text.txt",'r',encoding='utf-8') as
if '小强: 10本' in data:
data=data.replace('小强: 10','小兰: 11')
if '小兰: 12本' in data:
data=data.replace('小兰: 12','小兰: 14')
data=data.replace('小兰: 12','小兰: 14')
new_data +=data
with open(r"C:\Users\玛酷市南1号\Desktop\text.txt",'w',encoding='utf-8') as file1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment