清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
#_*_coding:utf-8_*_ import os import glob def findall(folder): '''遍历指定后缀文件''' if os.path.exists(folder): folder2 = glob.iglob(folder+'*.mp3') for f1 in folder2: print f1 folder1 = glob.iglob(folder+'*\\') for f in folder1: findall(f) if __name__ == '__main__': findall('D:\\')