Commit 3ac354b9 by BellCodeEditor

save project

parent a8d02629
Showing with 9 additions and 0 deletions
to=""
with open('C:\\Users\\legao-001\\Desktop\\35487888974454545.txt','r',encoding='UTF-8') as file:
for date in file:
if'小强:15本' in date:
print('目标在文件中')
d=date.replace("小强","小军")
to=to+d
print(to)
\ 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