- 利用递归寻找文件夹中所有的文件,并将这些文件的绝对路径添加到一个列表中返回(面试题)。
import os
def find_file(path, file_path=[]):
file_dir = os.listdir(path)
file_dir_abspath = [os.path.join(path
import os
def find_file(path, file_path=[]):
file_dir = os.listdir(path)
file_dir_abspath = [os.path.join(path