Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson12-3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit faf6938f authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 28235594
Hide whitespace changes
Inline Side-by-side
Showing with 7 additions and 3 deletions
  • diy.py
diy.py
View file @ faf6938f
...@@ -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)
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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