Commit 0bb31aec by BellCodeEditor

auto save

parent 59f687ca
Showing with 11 additions and 0 deletions
# 补充数据的第一种写法:
# file= open(r'\\Mac\Home\Desktop\book.txt','a',encoding='utf-8')
# file.write('小李:10本\n')
# file.write('李白:15本\n')
# file.close()
# file.write('里:10本\n')
# file.write('你:10本\n')
with open(r'\\Mac\Home\Desktop\book.txt','a',encoding='utf-8') as file:
file.write('li:10本\n')
file.write('李明:15本\n')
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