作业
Topic source第二版
import os
def find(path, key):
if os.path.isdir(path):
for d in os.listdir(path):
newdir = os.path.join(path, d)
find(newdir, key)
else:
if key in os.path.split(path)[1]:
print(path)
find(input('the dir: '), input('tht key: '))
- 1
太阳尚远Y