Commit c216e360 by BellCodeEditor

save project

parent 01981de2
Showing with 1 additions and 1 deletions
......@@ -8,7 +8,7 @@ with open(r"C:\Users\Administrator\Desktop","a",encoding='utf-8') as file:
file.write()
file.write('小强:12本/n')
file.write('李明:15本/n')
open(r"C:\Users\Administrator\Desktop","a",encoding='utf-8')
open(r"C:\Users\Administrator\Desktop","r",encoding='utf-8')
for i in file:
if '小兰:12本' in i:
print("数据在小兰里面")
......
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