Commit 27334967 by BellCodeEditor

auto save

parent 81d356bb
Showing with 5 additions and 3 deletions
...@@ -5,5 +5,7 @@ ...@@ -5,5 +5,7 @@
# '李文:9本\n' # '李文:9本\n'
# '张伟:16本\n') # '张伟:16本\n')
# llj.close() # llj.close()
with open(r"C:\Users\Administrator\Desktop\lll.txt.txt","a",encoding="utf-8") as llj: with open(r"C:\Users\Administrator\Desktop\lll.txt.txt","r",encoding="utf-8") as llj:
llj.write('小兰:12本\n''小丽:11本\n''李文:9本\n''张伟:16本') # llj.write('小兰:12本\n''小丽:11本\n''李文:9本\n''张伟:16本')
\ No newline at end of file a=llj.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