Commit 0bbea5a2 by BellCodeEditor

save project

parent 55e046b4
Showing with 4 additions and 0 deletions
...@@ -9,5 +9,9 @@ c=open(r"C:\Users\Administrator\Desktop\dn.text.txt","a",encoding="utf-8") ...@@ -9,5 +9,9 @@ c=open(r"C:\Users\Administrator\Desktop\dn.text.txt","a",encoding="utf-8")
c.write('小强:12本\n') c.write('小强:12本\n')
c.write('李明:15本\n') c.write('李明:15本\n')
c.close() c.close()
c=open(r"C:\Users\Administrator\Desktop\dn.text.txt","r",encoding="utf-8")
for k in c:
if k=='小强:12本' or k =='小兰:12本'
print("s")
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