Commit cd4ebdf6 by BellCodeEditor

save project

parent 174bbde0
Showing with 4 additions and 2 deletions
...@@ -5,4 +5,6 @@ with open(r"C:\Users\贝贝\Desktop\test.txt",'r',encoding='utf-8') as file1: ...@@ -5,4 +5,6 @@ with open(r"C:\Users\贝贝\Desktop\test.txt",'r',encoding='utf-8') as file1:
if '小丽:11本' in data: if '小丽:11本' in data:
data=data.replace('小丽:11本','小丽:16本') data=data.replace('小丽:11本','小丽:16本')
new_data+=data new_data+=data
print(new_data)
\ No newline at end of file with open(r"C:\Users\贝贝\Desktop\test.txt",'w',encoding='utf-8') as file1:
flie1.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