os.walk

path = '/Users/liujianing/PycharmProjects'
print(path)
for dirpath, dirnames, filenames in os.walk(path):
print('dirpath:')
print(dirpath)
print('dirnames:')
print(dirnames)
print('filenames:')
print(filenames)
posted @ 2020-08-04 19:56  6+0  阅读(161)  评论(0编辑  收藏  举报