Commit a00a30fa by BellCodeEditor

save project

parent 220bb768
Showing with 9 additions and 4 deletions
a=open(r'C:\Users\Think\Desktop\text.txt','w',encoding='utf-8')
a.write("小明:2")
a.close()
\ No newline at end of file
with open(r'C:\Users\Think\Desktop\text.txt','a',encoding='utf-8') as a:
a.write("小李:2")
a.write("小明:2")
a.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