Commit e8ca340f by BellCodeEditor

save project

parent cc712d20
Showing with 5 additions and 1 deletions
new_a=''
new_a=''
......@@ -8,6 +8,10 @@ with open(r"D:\郭涵哲\新建文本文档.txt",'r',encoding='utf-8') as file1:
if '小强:10本' in a:
a=a.replace('小强:10本','小强:11本' )
new_a+=a
with open(r"D:\郭涵哲\新建文本文档.txt",'w',encoding='utf-8') as file1:
file1.write(new_a)
......
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