Python 打印树形目录结构 (linux 下目录形式)

 Python 打印树形目录结构 (类似 linux 下目录的形式) import os import os.path def dfs_showdir(path, depth): if depth == 0: print("root:[" + path + "]") for item in os.listdir(path): if '.git'
相关文章
相关标签/搜索