Commit 49c665f4 by BellCodeEditor

save project

parent dc22b1a3
Showing with 10 additions and 0 deletions
name=input("请输入要查找的用户")
find=False
with open(r'C:\Users\lenovo\Desktop\1.txt','r',encoding='utf-8') as file:
for data in file:
if name in data:
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