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

Python 语言,不使用 itertools 库,只使用循环,可以实现排列组合里的不放回组合的函数吗?

  •  
  •   frmongo · Dec 26, 2018 · 2493 views
    This topic created in 2852 days ago, the information mentioned may be changed or developed.
    4 replies  •  2018-12-29 17:22:07 +08:00
    Volekingsg
        1
    Volekingsg  
       Dec 26, 2018
    可以,不过我许久之前的实现比较丑
    darkTianTian
        3
    darkTianTian  
       Dec 26, 2018
    什么叫不放回组合的函数?
    yisiliu
        4
    yisiliu  
       Dec 29, 2018 via iPhone
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2980 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:30 · PVG 10:30 · LAX 19:30 · JFK 22:30
    ♥ Do have faith in what you're doing.