Commit d80d36f0 by BellCodeEditor

save project

parent 0f6499be
Showing with 3 additions and 5 deletions
file1=open(r'C:\\Users\\Administrator\\Desktop\text.txt','w',encoding='utf-8')
file1.write('小张捐了两只猪')
file1.write('老八捐了两座厕所')
file1.close()
\ No newline at end of file
with open(r'C:\\Users\\Administrator\\Desktop\text.txt','a',encoding='utf-8') as file1:
file1.write('小张捐了两只猪')
file1.write('老八捐了两座厕所')
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