Commit 2b5091d0 by BellCodeEditor

auto save

parent 853f0ddc
Showing with 0 additions and 4 deletions
...@@ -2,6 +2,3 @@ ...@@ -2,6 +2,3 @@
# a=open(r"C:\Users\Lenovo\Desktop\新建文件夹\test.txt","w",encoding="utf-8") # a=open(r"C:\Users\Lenovo\Desktop\新建文件夹\test.txt","w",encoding="utf-8")
# a.write('小兰: 12本') # a.write('小兰: 12本')
# a.close() # a.close()
with open(r"C:\Users\Lenovo\Desktop\新建文件夹\test.txt","a",encoding="utf-8")as a:
a.write('小兰: 12本')
a.write('小丽:11本')
\ 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