Commit e7ab01c8 by BellCodeEditor

save project

parent a3b594cf
Showing with 7 additions and 2 deletions
...@@ -3,5 +3,9 @@ ...@@ -3,5 +3,9 @@
#ww.write("小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本") #ww.write("小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本")
#ww.close() #ww.close()
with open(r"C:\Users\Administrator\test.txt","a",encoding="UTF-8") as file: #with open(r"C:\Users\Administrator\test.txt","a",encoding="UTF-8") as file:
file.write('小强:12本,李明:15本') # file.write('小强:12本,李明:15本')
with open(r"C:\Users\Administrator\test.txt","r",encoding="UTF-8") as file:
for i in file:
print("在")
\ 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