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:
f.write('huhu:20本\n')
f.write('hoihi:30\n')
\ No newline at end of file
with open(r'1.txt','r',encoding='utf-8')as f:
d2=f.readlines()
with open(r'1.txt','r',encoding='utf-8')as f:
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