python查看一个文件夹下子文件的个数

import os
filenames="./data/NDBPic_Ehance"
file_count=0
for file in filenames:
  file_count = file_count + 1
print(file_count)

相关推荐