Commit 953cd9e5 by BellCodeEditor

save project

parent 4372e786
Showing with 1 additions and 1 deletions
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# file = open(r"C:\Users\Administrator\Desktop\test.txt",'w',encoding='utf-8') # file = open(r"C:\Users\Administrator\Desktop\test.txt",'w',encoding='utf-8')
# file.write('小兰,12本') # file.write('小兰,12本')
# file.close() # file.close()
with open(r"C:\Users\Administrator\Desktop\test.txt",'w',encoding='utf-8') as file: with open(r"C:\Users\Administrator\Desktop\test.txt",'a',encoding='utf-8') as file:
file.write('定金,30本') file.write('定金,30本')
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