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