pip install filestools -U
from treedir.tree import tree_dir tree_dir(r"D:\\personal\\话费发票", m_level=3, no_calc=False)