Commit 916d142a by BellCodeEditor

save project

parent d7b1dc5e
Showing with 7 additions and 2 deletions
new_data"
with open(r'C:\Users\Administrator\Desktop\text.txt','r', encoding='utf-8')as file:
for data in file:
if'小丽:11本'in data:
print('在')
\ No newline at end of file
data=data.replace('小丽:11本','小丽:20本')
new_data+=data
with open(r'C:\Users\Administrator\Desktop\text.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