Commit 5d238e91 by BellCodeEditor

save project

parent 0cfb6ae5
Showing with 54 additions and 0 deletions
with open(r'/Users/mac/Desktop/test.txt','w',encoding='utf-8') as a:
a.write('小兰:12本')
new_date=''
with open(r'/Users/mac/Desktop/test.txt','w',encoding='utf-8') as a:
for data in file1:
if '小兰:12本'in data:
data=data.replace('小兰:12本','小兰:111111111111111本')
new_data +=data
print(new_data)
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