【Python】获取当前目录和子目录下全部文件或指定文件的方法

Date: 2018.5.23 ================================================================html 方法一:os.listdir() (1)获取当前目录及子目录下全部文件路径列表:getallfiles.py import os import sys allfile = [] def get_all_file(rawdir):
相关文章
相关标签/搜索