Commit 3021e0b4 by BellCodeEditor

save project

parent 030965ef
Showing with 8 additions and 3 deletions
peter=""
with open(r'C:\Users\Administrator\Desktop\78787.txt','r',encoding='utf-8') as file: with open(r'C:\Users\Administrator\Desktop\78787.txt','r',encoding='utf-8') as file:
for i in file: for i in file:
if"小强:12,"in i: if "小强:12," in i:
print(111) i= i.replace("小强:12,","小强:11,")
peter+=i
with open(r'C:\Users\Administrator\Desktop\78787.txt','w',encoding='utf-8') as file1:
file1.write(peter)
\ No newline at end of file
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