Commit ccc26c05 by BellCodeEditor

auto save

parent 8fd8419e
Showing with 5 additions and 3 deletions
pp=open(r'c:\Users\29018\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') with open('C:\\Users\\29018\\Desktop\\test.txt','w',encoding='utf-8') as file:
a=pp.read() file.write('他用户\n')
print(a) #不需要关闭文件,file.close()
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