V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-12-26 11:55:33 +08:00 · 1713 次点击
    这是一个创建于 1941 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2018-12-29 17:22:07 +08:00
    Volekingsg
        1
    Volekingsg  
       2018-12-26 12:00:30 +08:00
    可以,不过我许久之前的实现比较丑
    xpresslink
        2
    xpresslink  
       2018-12-26 16:53:58 +08:00
    darkTianTian
        3
    darkTianTian  
       2018-12-26 21:37:59 +08:00
    什么叫不放回组合的函数?
    yisiliu
        4
    yisiliu  
       2018-12-29 17:22:07 +08:00 via iPhone
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5625 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:11 · PVG 14:11 · LAX 23:11 · JFK 02:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.