V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 1899 views
    This topic created in 3273 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   ·   Solana   ·   868 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:00 · PVG 06:00 · LAX 15:00 · JFK 18:00
    ♥ Do have faith in what you're doing.