Commit 4974d3fb by BellCodeEditor

save project

parent 718385f0
Showing with 4 additions and 3 deletions
......@@ -11,11 +11,11 @@ with open(r'C:\Users\BBTC\Desktop\test.txt','r',encoding='utf-8') as a:
for date in a:
if "D:10" in date:
date=date.replace('D:10','D:11')
new_date + = date
new_date += date
with open(r'C:\Users\BBTC\Desktop\test.txt','r',encoding='utf-8') as a:
with open(r'C:\Users\BBTC\Desktop\test.txt','w',encoding='utf-8') as a:
a.write(new_date)
with open(r'C:\Users\BBTC\Desktop\test.txt','r',encoding='utf-8') as a:
a=a.read()
b=a.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