Commit 194eb980 by BellCodeEditor

save project

parent 96c8dad4
Showing with 6 additions and 4 deletions
file1=open(r'C:\Users\MAKCOO\Desktop\新建文件夹','a',encoding='utf-8') with open(r'C:\Users\MAKCOO\Desktop\新建文件夹\新建文本文档.txt','r',encoding='utf-8') as file:
file1.write("小丽:11本\n") for data in file:
file1.close() if '小强:15本' in data:
\ No newline at end of file data = data.replace('小强:15本','小强:10本')
\ 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