Commit 346b5534 by BellCodeEditor

save project

parent 4f723580
Showing with 7 additions and 4 deletions
with open(r'1.txt','a',encoding='utf-8')as f: with open(r'1.txt','r',encoding='utf-8')as f:
f.write('huhu:20本\n') d2=f.readlines()
f.write('hoihi:30\n') with open(r'1.txt','r',encoding='utf-8')as f:
\ No newline at end of file d1= f.read()
print(d1)
print(d2)
\ 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