Commit 4d8a7593 by BellCodeEditor

save project

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