Commit df07b5d2 by BellCodeEditor

save project

parent 1cfec919
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","r",encoding='utf-8')
open(r"C:\Users\Administrator\Desktop","r",encoding='utf-8') as file
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