Commit 077ebce7 by BellCodeEditor

save project

parent 5d3b4717
Showing with 11 additions and 5 deletions
with open(r"") with open(r"C:\Users\maku\Desktop\rmt.txt","r",encoding='utf-8')as a
for i in a: for i in a:
if '小兰:12本'in i: if '小兰:12本'in i:
print('在') i=i.replace('小兰:12本','小兰:20本')
\ No newline at end of file new_i +=i
with open(r"C:\Users\maku\Desktop\rmt.txt","r",encoding='utf-8')as a
a.write(new_i)
with open(r"C:\Users\maku\Desktop\rmt.txt","r",encoding='utf-8')as a
e=a.read()
print(e)
\ 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