Commit 67e6a4a5 by BellCodeEditor

save project

parent dc22b1a3
Showing with 11 additions and 0 deletions
with open(r'c:\Users\fuyih\Desktop\test.txt','r',encoding='utf-8') as file:
new_data=''
for data in file:
#print(data)
if '车亿鸣'1" in data:
data=data.replace('车亿鸣:1本','车亿鸣:1本')
new_data+=data
with open(r'c:\Users\fuyih\Desktop\test1.txt','w',encoding='utf-8') as file:
file.write(new_data)
\ 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