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

bellcode / lesson12-1

  • 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 498a8535 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 85ea9af8
Show whitespace changes
Inline Side-by-side
Showing with 22 additions and 4 deletions
  • diy.py
diy.py
View file @ 498a8535
g=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='uft-8')
g.write('阿萨德飞规划局快乐')
g.close()
\ No newline at end of file
# g=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='uft-8')
# g.write('阿萨德飞规划局快乐')
# g.close()
# g=open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='uft-8')
# g.write('小乔100本\n')
# g.write('大乔1000本\n')
# g.close()
# with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='uft-8') as g:
# g.write('大乔1000本\n')
# g.write('小乔100本\n')
# with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='uft-8') as g:
# a=g.read()
# print(a)
# new=''
# with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='uft-8') as g:
# for data in g:
# if '大乔“1000本' in data:
# data=data.replace('大乔:1000本','大乔:10000本')
# new+=data
# with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='uft-8') as g:
# g.write(new)
\ No newline at end of file
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