Commit 912a194b by BellCodeEditor

auto save

parent fe738f1e
Showing with 2 additions and 0 deletions
...@@ -4,3 +4,5 @@ ...@@ -4,3 +4,5 @@
#file1.close() #file1.close()
with open(r'C:\Users\Makcoo-Bellcode\Desktop\book.txt','a',encoding='utf-8')as file: with open(r'C:\Users\Makcoo-Bellcode\Desktop\book.txt','a',encoding='utf-8')as file:
file.write("小兰:12本\n小丽:11本\n李文:9本\n张伟:16本") file.write("小兰:12本\n小丽:11本\n李文:9本\n张伟:16本")
for data in file:
if ''
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