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

python 除了 sys.argv 和 getopt 还有没有什么好用的 从命令行提取参数的库?

  •  
  •   whx20202 · Dec 19, 2016 · 3428 views
    This topic created in 3567 days ago, the information mentioned may be changed or developed.
    7 replies  •  2016-12-27 09:58:04 +08:00
    mulog
        1
    mulog  
       Dec 19, 2016
    jackyspy
        2
    jackyspy  
       Dec 19, 2016
    argparse
    docopt
    keysona
        3
    keysona  
       Dec 19, 2016
    同推 click 。

    非常 awesome 的一个库。
    whx20202
        4
    whx20202  
    OP
       Dec 19, 2016
    感谢以上三位 一会去试试
    @keysona
    @jackyspy
    @mulog
    ansheng
        5
    ansheng  
       Dec 19, 2016
    同求,楼主能否整理一份文档。
    0x4b0082
        6
    0x4b0082  
       Dec 27, 2016
    个人认为这个需求还是原生的写好,为了这一点点去引入一个库,感觉不值得
    whx20202
        7
    whx20202  
    OP
       Dec 27, 2016
    @ansheng click 有英文文档 相比其他库的英文文档非常简单
    而且也有好多人写了中文教程
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1254 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:05 · PVG 01:05 · LAX 10:05 · JFK 13:05
    ♥ Do have faith in what you're doing.