Commit fa358a33 by BellCodeEditor

save project

parent 2f7a2aa6
Showing with 2 additions and 3 deletions
......@@ -5,8 +5,6 @@
#nidaye=open(r'C:\Users\人\Desktop\test.txt','a',encoding='utf-8')
#nidaye.write('老王八:20本\n')
#nidaye.close()
with open(r'C:\Users\人\Desktop\test.txt','w',encoding='utf-8') as nidaye:
nidaye.write('小王八:20本\n')
nidaye.write('大王八:20本\n')
with open(r'C:\Users\人\Desktop\test.txt','r',encoding='utf-8') as nidaye:
a=nidaye.read()
print(a)
\ 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