Commit 1b008774 by BellCodeEditor

auto save

parent 7fd5610c
Showing with 7 additions and 4 deletions
with open(r'C:\Users\jd\Desktop\ttext.txt','a',encoding='utf-8') as k: # with open(r') as k:
k.write('小强:12本\n') # k.write('小强:12本\n')
k.write('李明:15本\n') # k.write('李明:15本\n')
with open(r'C:\Users\jd\Desktop\ttext.txt','r',encoding='utf-8') as file:
a=file.read()
print(a)
\ 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