Commit 6c40209f by BellCodeEditor

save project

parent 82149b5a
Showing with 2 additions and 1 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#file1.write('小王:11本\n') #file1.write('小王:11本\n')
#file1.close(/Users/hltwhy/Desktop/book.docx','a',encoding=utf-8) #file1.close(/Users/hltwhy/Desktop/book.docx','a',encoding=utf-8)
with(r'/Users/hltwhy/Desktop/book.txt','r',encoding='utf-8')as file1: with open (r'/Users/hltwhy/Desktop/book.txt','r',encoding='utf-8')as file1:
a=file1.read() a=file1.read()
print(a) 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