Commit 6cfcd88e by BellCodeEditor

auto save

parent fb94e62a
Showing with 5 additions and 3 deletions
......@@ -9,5 +9,8 @@
#file1.write("李明:15本\n")
#file1.write("小兰:12本\n")
#file1.close()
with open(r"C:\\Users\\Administrator\\Desktop\\test.txt","a",encoding="utf-8") as file:
file.write("小美:0本\n")
\ No newline at end of file
#with open(r"C:\\Users\\Administrator\\Desktop\\test.txt","a",encoding="utf-8") as file:
# file.write("小美:0本\n")
with open(r"C:\\Users\\Administrator\\Desktop\\test.txt","r",encoding="utf-8") as file:
a=file.read()
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