Commit a7342fe3 by BellCodeEditor

save project

parent bad99665
Showing with 1 additions and 2 deletions
...@@ -10,5 +10,4 @@ with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='GBK') as file ...@@ -10,5 +10,4 @@ with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='GBK') as file
new_data+=data new_data+=data
with open(r'C:\Users\Administrator\Desktop\book.txt','w',encoding='GBK') as file1: with open(r'C:\Users\Administrator\Desktop\book.txt','w',encoding='GBK') as file1:
file1.write(new_data) file1.write(new_data)
for new_data in file1: print(new_data)
print(new_data)
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