Commit faf6938f by BellCodeEditor

auto save

parent 28235594
Showing with 7 additions and 3 deletions
...@@ -5,6 +5,11 @@ with open(r'C:\Users\Administrator\Desktop\Sans.txt','w',encoding='utf-8')as new ...@@ -5,6 +5,11 @@ with open(r'C:\Users\Administrator\Desktop\Sans.txt','w',encoding='utf-8')as new
newtxt.write('*On days like these,kids like you...\n') newtxt.write('*On days like these,kids like you...\n')
newtxt.write('*Should be burning IN THE HELL....\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: with open(r'C:\Users\Administrator\Desktop\Sans.txt','r',encoding='utf-8')as newtxt:
newi=''
for i in newtxt: for i in newtxt:
if '*birds are singing,flower are blooming...\n' in i: if '*What a wonderful day outside.\n' in i:
print('完成') i=newi.replace('.','...')
\ No newline at end of file newi+=i
print(newi)
with open(r'C:\Users\Administrator\Desktop\Sans.txt','w',encoding='utf-8')as newtxt:
newtxt.write(newi)
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