Commit 9efb10b5 by BellCodeEditor

save project

parent 83328e8a
Showing with 11 additions and 0 deletions
q=open('C:\\Users\\maku\\Desktop\\test.txt','w',encoding='utf-8')
q.write('小明:20本\n')
q.write('小兰:20本\n')
q=open('C:\\Users\\maku\\Desktop\\test.txt','a',encoding='utf-8')
q.write('李文:9本\n')
q.write('张伟:123456本\n')
q.close()
q=open('C:\\Users\\maku\\Desktop\\test.txt','r',encoding='utf-8')
w=q.read()
print(w)
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