Commit 74f8aafd by BellCodeEditor

save project

parent 01c3b99e
Showing with 2 additions and 3 deletions
new_data='' new_data=''
with open('C:\\Users\\Public\\Desktop\\lm.txt','r',encoding='utf-8') as file1: with open(r'C:\Users\Public\Desktop\lm.txt','r',encoding="utf-8") as file1:
for data in file1: for data in file1:
if "小兰:12" in data: if "小兰:12" in data:
print("1") data=data.replace('小兰:12','小兰:13')
data=data.replace('小兰:12,小兰:13')
new_data +=data new_data +=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