Python counts the number of files in the current directory

import glob
path_file_number=glob.glob(pathname='./bug_back/*.txt') #获取当前文件夹下个数
print(path_file_number)
print(len(path_file_number))

Guess you like

Origin blog.csdn.net/qq_34237321/article/details/110085081