1. 首页
  2. 行业
  3. 互联网
  4. filetree.py

filetree.py

上传者: 2020-08-20 03:32:05上传 PY文件 1.08KB 热度 15次
python 递归遍历文件夹得到json格式目录树目录结构,输出的json目录结构如下:[{"title":"file1","value":"file"},{"title":"general","value":"dir","subdir":[{"title":"file2","value":"file"},{"title":"photo","value":"dir","subdir":[{"title":"file4","value":"file"},{"title":"file3","value":"file"}]}]},{"title":"area","value":"dir","subd
用户评论