Commit a4a55f8f by BellCodeEditor

save project

parent 8520a592
Showing with 2 additions and 1 deletions
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
#w=open(r'C:\Users\Administrator\Desktop\text.txt','w',encoding='utf-8') #w=open(r'C:\Users\Administrator\Desktop\text.txt','w',encoding='utf-8')
#w.write("小兰:12\n小丽:11\n李文:9\n张伟:16") #w.write("小兰:12\n小丽:11\n李文:9\n张伟:16")
#w.close() #w.close()
with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8' as w: with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8' as w:
w.write("小强:12\n李明:15") w.write("小强:12\n李明:15")
\ 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