Commit af4990d4 by BellCodeEditor

save project

parent 1bb200a1
Showing with 7 additions and 3 deletions
while open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')as f1:
for data in f1:
q=''
with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')as f1:
for d in f1:
if '小强:10'in data:
print("有")
d=d.replace('小强:10','小强:11')
q+=d
with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')as f1:
f1.write(q)
......
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