Commit fa0e63a5 by BellCodeEditor

save project

parent 146f4404
Showing with 8 additions and 5 deletions
filel=open(r'C:\Users\Administrator\Desktop\book.txt','a',encoding='utf-8') filel=open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')
filel.write('小兰:12本\n') # filel.write('小兰:12本\n')
filel.write('小强:10本\n') # filel.write('小强:10本\n')
for i in range(i): for i in filel:
if '小强:10本' if '小强:10本' in i:
i=i.replace('小强:10本','小强:11本')
print(i)
filel.close() filel.close()
\ 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