Commit 05a29c48 by BellCodeEditor

save project

parent 4a37809e
Showing with 4 additions and 3 deletions
...@@ -10,7 +10,8 @@ a=open(r'C:\Users\Administrator\Desktop\1.txt','w',encoding='utf-8') ...@@ -10,7 +10,8 @@ a=open(r'C:\Users\Administrator\Desktop\1.txt','w',encoding='utf-8')
a.write("小强:10本\n") a.write("小强:10本\n")
a.write("李明:15本\n") a.write("李明:15本\n")
a.close() a.close()
a=open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8') #a=open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8')
a.write("小兰:12本") #a.write("小兰:12本")
a.close() with open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8')as a:
a.write("小兰:12本")
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