Commit f07fd97d by BellCodeEditor

save project

parent fee0be06
Showing with 4 additions and 3 deletions
#with open(r'C:\Users\Administrator\Desktop\ll.txt','a',encoding='utf-8') as l: with open(r'C:\Users\Administrator\Desktop\ll.txt','a',encoding='utf-8') as l:
# l.write('小强:13本\n') l.write('小兰:10本\n')
# l.write('李明:15本\n') l.write('小强:13本\n')
l.write('李明:15本\n')
with open(r'C:\Users\Administrator\Desktop\ll.txt','r',encoding='utf-8') as l: with open(r'C:\Users\Administrator\Desktop\ll.txt','r',encoding='utf-8') as l:
for d in l: for d in l:
if '小强:13本' in d: if '小强:13本' in d:
......
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