Commit 4e7eee06 by BellCodeEditor

save project

parent 1cb88745
Showing with 4 additions and 0 deletions
...@@ -5,3 +5,7 @@ with open(r'C:\Users\Administrator\Desktop\1.txt','w',encoding='utf-8') as filel ...@@ -5,3 +5,7 @@ with open(r'C:\Users\Administrator\Desktop\1.txt','w',encoding='utf-8') as filel
filel.write('小兰:12本','小丽:11本','李文:9本','阿伟:16本') filel.write('小兰:12本','小丽:11本','李文:9本','阿伟:16本')
with open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8') as filel: with open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8') as filel:
filel.write('小强:12本','小马:11本') filel.write('小强:12本','小马:11本')
with open(r'C:\Users\Administrator\Desktop\1.txt','a',encoding='utf-8') as filel:
a=filel.read()
print(a)
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