Commit 2fd9afbb by BellCodeEditor

save project

parent 66718dee
Showing with 10 additions and 5 deletions
with open(r"C:\Users\JW\Desktop\MM.txt.",'r',encoding='utf-8') as fill: new_datat=""
a=fill.read() with open(r"C:\Users\JW\Desktop\test.txt",'r',encoding='utf-8') as file1:
if "小八嘎" in a: for data in file1:
print("mmmm,,,mmlknhgghgbgg") if '小强:10本' in data:
\ No newline at end of file data=data.replace('小强:10本','小强:1000000000000000本')
new_data +=data
with open(r"C:\Users\JW\Desktop\test.txt.",'r',encoding='utf-8') as file1:
file1.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