Is there a way to count total number of '.txt' files from each directories and sub directories in python?

后端 未结 0 999
生来不讨喜
生来不讨喜 2021-01-30 02:53

I would like to visit every directory, subdirectory and count the number of text files in each directory and subdirectory. I want the sample output as Expected Output:

C:

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