Commit 87131b24 by BellCodeEditor

save project

parent f9fbd16c
Showing with 4 additions and 0 deletions
name=input("请输入要查找的用户")
find=False
newData=""
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
data.replace(name,SB)
print("找到了")
newData+=data
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