Commit b736062d by BellCodeEditor

save project

parent e2a420f7
Showing with 4 additions and 2 deletions
...@@ -4,9 +4,11 @@ with open('C:\\Users\\john\\Desktop\\tv.txt','r',encoding='utf-8') as file1: ...@@ -4,9 +4,11 @@ with open('C:\\Users\\john\\Desktop\\tv.txt','r',encoding='utf-8') as file1:
if '小兰:12' in date: if '小兰:12' in date:
date=date.replace('小兰:12','小兰,19') date=date.replace('小兰:12','小兰,19')
newdate+=date newdate+=date
with open('C:\\Users\\john\\Desktop\\tv.txt','w',encoding='utf-8') as file1: with open('C:\\Users\\john\\Desktop\\tv.txt','w',encoding='utf-8') as file1:
print(newdate)
#file1.write(newdate) file1.write(newdate)
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