Commit 135547a2 by BellCodeEditor

auto save

parent c2c4dcc5
Showing with 6 additions and 6 deletions
...@@ -9,11 +9,11 @@ new="" ...@@ -9,11 +9,11 @@ new=""
file1=open("C:\\Users\\栩栩\\Desktop\\a.text","r",encoding="utf-8") file1=open("C:\\Users\\栩栩\\Desktop\\a.text","r",encoding="utf-8")
for i in file1: for i in file1:
if '小强' in i: if '小强' in i:
print("在") print("a")
i.replace('10','11') i=i.replace('10','11')
if '小兰' in i: if '小兰' in i:
print("在") i=i.replace('9','12')
i.replace('9','12')
new=new+i new=new+i
file1.close()
with open("C:\\Users\\栩栩\\Desktop\\a.text","w",encoding="utf-8")as file: with open("C:\\Users\\栩栩\\Desktop\\a.text","w",encoding="utf-8")as file:
file.white(new) file.write(new)
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