Commit 34d8294d by BellCodeEditor

save project

parent a8d02629
Showing with 10 additions and 0 deletions
aaa=''
with open(r'C:\Users\MAKCOO-03\Desktop\11.txt','r',encoding="utf-8") as fillu:
for data in fillu:
if "小丽:11本" in data:
data=data.replace('小丽:11本','小丽:12本')
aaa+=data
print(aaa)
with open(r'C:\Users\MAKCOO-03\Desktop\11.txt','w',encoding="utf-8") as fill1:
fill1.write(aaa)
\ 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