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
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:
newi=''
for i in newtxt:
if '*birds are singing,flower are blooming...\n' in i:
print('完成')
\ No newline at end of file
if '*What a wonderful day outside.\n' in i:
i=newi.replace('.','...')
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