import os s=input('please input the str u want find\n') a=0 for i in os.walk('.'): for k in i[2]: if s in k: print(k,'path=',i[0]) a=1 if a==0: print('there is no',s)
Sign in to make a reply
下才爽
import os s=input('please input the str u want find\n') a=0 for i in os.walk('.'): for k in i[2]: if s in k: print(k,'path=',i[0]) a=1 if a==0: print('there is no',s)