import osdef search_file(path, str): for file in os.listdir(path): this_path = os.path.join(path, file) if os.path.isfile(this_path): if str in file: print(this_path) else: search_file(this_path, str)search_file('d:/','简述')
Sign in to make a reply
微笑的叶蓝秋