Discuss / Python / 第二题,交作业

第二题,交作业

Topic source

下才爽

#1 Created at ... [Delete] [Delete and Lock User]

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)


  • 1

Reply