Commit 4156db4a by BellCodeEditor

save project

parent cebd6773
Showing with 5 additions and 3 deletions
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
# file.write('李文:9本') # file.write('李文:9本')
# file.write('张伟;16本') # file.write('张伟;16本')
# print() # print()
with open(r'C:\Users\玛酷机器人编程中心\Desktop\text.txt','a',encoding='utf-8') as file: #
file.write('小强:12本') with open(r'C:\Users\玛酷机器人编程中心\Desktop\text.txt','r',encoding='utf-8')as file:
file.write('李明:15本') a=file.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