how to use the python walk through function's directory

前端 未结 0 915
一向
一向 2021-01-12 15:21

Here is my code:

for root, dirs, files in os.walk(variable_path):
    print(dirs[0])

By checking the type we already the dirs is a list, and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题