Commit 33d6edff by BellCodeEditor

save project

parent 328c6bd9
Showing with 3 additions and 2 deletions
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
files=open(r"c:\Users\karlcarlo\Desktop\dav.txt",'w',encoding='utf-8') files=open(r"c:\Users\karlcarlo\Desktop\dav.txt",'w',encoding='utf-8')
#files.write('小兰:12本,小丽:11本,李文:9本,张伟:16本') #files.write('小兰:12本,小丽:11本,李文:9本,张伟:16本')
files.write('小强:10本\n李明:15本\n') files.write('小强:10本\n李明:15本\n')
files.close() files.close()
\ No newline at end of file with open(r"c:\Users\karlcarlo\Desktop\dav.txt",'a',encoding='utf-8') as files:#追加
files.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