推荐学习书目
› 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
fghjghf
V2EX  ›  Python

Python 有那些高级数据结构的库?

  •  
  •   fghjghf · Nov 12, 2019 · 4846 views
    This topic created in 2525 days ago, the information mentioned may be changed or developed.

    如题。能实现,链表,树,图。之类的

    6 replies  •  2019-11-13 11:29:07 +08:00
    zshvvhm
        1
    zshvvhm  
       Nov 12, 2019
    networkx?
    fghjghf
        2
    fghjghf  
    OP
       Nov 12, 2019
    @zshvvhm en..这个是画图的吧
    zhoudaiyu
        3
    zhoudaiyu  
       Nov 12, 2019
    collections
    InkStone
        4
    InkStone  
       Nov 13, 2019
    @fghjghf 不是,这是一个图和网络(网络流的网络)的库。

    另外,链表、图、树什么的都是很初级的数据结构……dict 天然就是哈希表( orderedMap 是树),list 天然是线性表(但不是链表,写了那么多年 Python 没遇到过一次需要用链表的场合)。
    fghjghf
        5
    fghjghf  
    OP
       Nov 13, 2019
    @InkStone 就是 collections 一个模块就搞掂咯
    InkStone
        6
    InkStone  
       Nov 13, 2019
    @fghjghf 图相关的数据结构 /算法还是得靠 networkx
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2971 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:52 · PVG 15:52 · LAX 00:52 · JFK 03:52
    ♥ Do have faith in what you're doing.