Commit 7b5c82a8 by BellCodeEditor

save project

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