python常用方法

1、遍历目录及文件方法 1)根据时间遍历指定目录下的文件 [[email protected] b2c]# cat file_list.py #!/usr/bin/env python # coding: utf-8 import os def get_file_list(file_path): dir_list = os.listdir(file_path) if not di
相关文章
相关标签/搜索