Commit 41433086 by BellCodeEditor

save project

parent 1beaa262
Showing with 4 additions and 3 deletions
......@@ -7,6 +7,6 @@
# '小强:12本\n'
# '李明:8本\n')
#file1.close()
with open(r"D:\Desktop\book.txt","a",encoding='utf-8') as file1:
file1.write('小强:5本\n'
'李明:9本\n')
with open(r"D:\Desktop\book.txt","r",encoding='utf-8') as file1:
a=file1.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