推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
mengzx
V2EX  ›  Python

Python 递归问题求解

  •  1
     
  •   mengzx · May 10, 2017 · 2228 views
    This topic created in 3468 days ago, the information mentioned may be changed or developed.
    在递归时没有办法获取字典上一层的 name 值和 depth 值,求大神指导下
    4 replies  •  2018-08-18 13:10:02 +08:00
    wwqgtxx
    wwqgtxx
    May 10, 2017 via iPhone
    2
    递归的时候通过参数把父元素传进去不就好
    mengzx
    mengzx
    OP
    Aug 18, 2018
    3
    @livid 能帮忙删除这个主题吗,谢谢。
    mengzx
    mengzx
    OP
    Aug 18, 2018
    4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1929 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:10 · PVG 16:10 · LAX 00:10 · JFK 03:10
    ♥ Do have faith in what you're doing.