import glob for i in glob.glob(r'C:\Desktop\**',recursive=True): print(i) """ re:?*【0-9】正则, recursive:开启递归return:all_path """