import os
def search(dirname):
filenames = os.listdir(dirname)
for filename in filenames:
full_filename = os.path.join(dirname, filename)
if os.path.isdir(full_filename):
search(full_filename)
else:
#todo
'python' 카테고리의 다른 글
jupyter notebook 비밀번호 변경 (0) | 2021.09.28 |
---|---|
python 오브젝트 함수,변수 리스트 (0) | 2018.04.02 |
dictionary sort (0) | 2018.02.19 |
python2 utf8인코딩 (0) | 2017.07.29 |
python string to dict or list etc... (0) | 2016.12.29 |