import glob # path_file_number=glob.glob('D:/case/test/testcase/checkdata/*.py')#或者指定文件下个数 path_file_number=glob.glob(pathname='*.py') #获取当前文件夹下个数 print(path_file_number) print(len(path_file_number))
获取当前文件夹下文件个数
猜你喜欢
转载自www.cnblogs.com/ywheunji/p/12242785.html
今日推荐
周排行