Commit 81495b5b by BellCodeEditor

save project

parent e7b0ece5
Showing with 5 additions and 0 deletions
name = input("请输入你要查找的用户:")
find = False
with open(r'C:\Users\Lenovo\Desktop\1.txt','r',encoding='utf-8') as file:
for date in file:
if name in date:
find = True
print("找到了")
if find == False:
print("没找到")
\ 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