Commit 2ba5d6f4 by BellCodeEditor

save project

parent 36a6d1c2
Showing with 6 additions and 0 deletions
...@@ -8,3 +8,8 @@ with open(r'C:\Users\CM\Desktop\test.txt','r',encoding='utf-8') as file1: ...@@ -8,3 +8,8 @@ with open(r'C:\Users\CM\Desktop\test.txt','r',encoding='utf-8') as file1:
print('数据在文件中') print('数据在文件中')
file1.close() file1.close()
with openr"C:\Users\LENOVO\Desktop\.txt','w',encoding='utf-8')as file1:
a=file1.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