Commit 8b872dd1 by BellCodeEditor

auto save

parent b51d3a23
Showing with 3 additions and 1 deletions
......@@ -2,6 +2,7 @@
#打开、创建文件
file1=open(r"D:\Documents\Desktop\book.txt",'w',encoding='utf-8')
#写入数据
file1.write('小兰:12本')
file1.write('小兰:12本\n')
file1.write('小兰:12本\n')
#关闭文件
file1.close()
\ 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