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

Python 有没有专门集合计算的包(轮子)?

  •  
  •   NoOneNoBody · Oct 30, 2023 · 1150 views
    This topic created in 926 days ago, the information mentioned may be changed or developed.
    需求
    1. 不限集合类型,只考虑内容(值)的匹配
    例如 list/tuple/set/dict.values()/dataframe.columns 只要维度相同可以混合比较
    值的类型还是要考虑的,如 字符 '1'与整数 1 不能匹配

    2. 有序
    希望,计算结果保持输入的顺序

    自己写个 set 还是能写出来,但考虑上述两个需求,琐碎的逻辑就很多,感觉自己写越写越乱
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5457 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 05:52 · PVG 13:52 · LAX 22:52 · JFK 01:52
    ♥ Do have faith in what you're doing.