Commit 7b5c82a8 by BellCodeEditor

save project

parent 355a497a
Showing with 7 additions and 5 deletions
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
# filel.close() # filel.close()
# ''' # '''
with open(r'C:\Users\Administrator\Desktop\姓陈的人是SB.txt','r',encoding='utf-8')as filel: with open(r'C:\Users\Administrator\Desktop\姓陈的人是SB.txt','r',encoding='utf-8')as filel:
for i in filel: for date in filel:
if "sb:123" in i: if "sb:123" in date:
print("666") date = date.replace("sb:123","sb:124")
new_a += date
\ No newline at end of file with open(r'C:\Users\Administrator\Desktop\姓陈的人是SB.txt','w',encoding='utf-8')as filel:
filel.write(new_a)
\ 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