Commit fbb7c490 by BellCodeEditor

save project

parent a8d02629
Showing with 10 additions and 0 deletions
new_f = ""
with open(r"C:\Users\栩栩\Desktop\捐赠明细2.txt","r",encoding="utf-8") as f:
for i in f:
if "小兰:12本"in i:
i = i.replace("小兰:12本","小兰:14本")
new_f += i
with open(r"C:\Users\栩栩\Desktop\捐赠明细2.txt","w",encoding="utf-8") as f:
f.write(new_f)
\ 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