Commit 1ed56310 by BellCodeEditor

save project

parent dfcb6727
Showing with 3 additions and 3 deletions
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
# file1.write('小方:5本') # file1.write('小方:5本')
# file1.write('小高:20本') # file1.write('小高:20本')
# file1.close() # file1.close()
with open(r'C:\users\CM\Desktop\test.txt','a',encoding='utf-8')as with open(r'C:\users\CM\Desktop\test.txt','r',encoding='utf-8')as
file: file:
file.write('小兰:12本') a=file.read('小兰:12本')
print(a)
......
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