Commit adbd0c90 by BellCodeEditor

auto save

parent 38bcde8e
Showing with 3 additions and 2 deletions
......@@ -11,8 +11,8 @@ with open(r'C:\Users\BBTC\Desktop\test.txt','r',encoding='utf-8')as file1:
if 'D:10' in data:
data=data.replace('D:10','D:11')
new_data+=data
with open(r'C:\Users\BBTC\Desktop\test.txt','r',encoding='utf-8')as file1:
file1.write(new_date)
with open(r'C:\Users\BBTC\Desktop\test.txt','w',encoding='utf-8')as file1:
file1.write(new_data)
with open(r'C:\Users\BBTC\Desktop\test.txt','r',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