Commit 9bd93786 by BellCodeEditor

save project

parent a8d02629
Showing with 12 additions and 0 deletions
new_i=''
with open(r'C:\Users\Administrator\Desktop\one.txt','r',encoding='utf-8') as f:
for i in f:
if 'one:1' in i:
i = i.replace('one:1','one:2')
new_i += i
with open(r'C:\Users\Administrator\Desktop\one.txt','w',encoding='utf-8') as f:
f.write(new_i)
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