Commit 0266cb5b by BellCodeEditor

save project

parent 16b11ce8
Showing with 11 additions and 0 deletions
a = ''
with open('C:\\Users\\EDY\\Desktop\\ad\\pp.txt','r',encoding = 'utf-8') as fill1:
for i in fill1:
if '小兰:12'in i:
print('存在')
i=i.replace('小兰:12','小兰:19')
a +=i
with open('C:\\Users\\EDY\\Desktop\\ad\\pp.txt','w',encoding = 'utf-8') as fill1:
fill1.write(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