Commit b7b27acf by BellCodeEditor

auto save

parent 3c2a4f44
Showing with 8 additions and 0 deletions
new_date=''
with open(r'C:\Users\Charles\Desktop\史家屹.txt','r',encoding='utf-8') as file1:
for data in file1:
if '\n家家:66本' in data:
data=data.replace('\n家家:66本','\n家家:6本')
new_date+=data
with open(r'C:\Users\Charles\Desktop\史家屹.txt','w',encoding='utf-8') as file1:
file1.write(new_date)
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