Commit e7ae7faa by BellCodeEditor

save project

parent a8d02629
Showing with 16 additions and 0 deletions
newi=''
with open(r'C:\Users\Administrator\Desktop\Sans.txt','w',encoding='utf-8')as newtxt:
newtxt.write('*What a wonderful day outside.\n')
newtxt.write('*birds are singing,flower are blooming...\n')
newtxt.write('*On days like these,kids like you...\n')
newtxt.write('*Should be burning IN THE HELL....\n')
with open(r'C:\Users\Administrator\Desktop\Sans.txt','r',encoding='utf-8')as newtxt:
for i in newtxt:
if '*birds are singing,flower are blooming...\n' in i:
for i in newtxt:
if '*What a wonderful day outside.\n' in i:
i.replace('*What a wonderful day outside.\n','*What a wonderful day outside...\n')
newtxt+=i
with open(r'C:\Users\Administrator\Desktop\Sans.txt','w',encoding='utf-8')as newtxt:
newtxt.write(newi)
\ 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