python 循环输出指定目录下的所有文件,目录练习记录
import ospath = '/www/wwwpython/test/x/'for folderName, subfolders, filenames in os.walk(path): print('根目录:' + folderName) for subfolder in subfolders: print('根目录:' + folderName + '...