Commit 498a8535 by BellCodeEditor

auto save

parent 85ea9af8
Showing with 22 additions and 4 deletions
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
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