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

python 上有没有比较好的验证码生成包

  •  
  •   veezzz · Nov 7, 2014 · 5005 views
    This topic created in 4353 days ago, the information mentioned may be changed or developed.
    7 replies  •  2014-11-08 19:19:19 +08:00
    gkiwi
        1
    gkiwi  
       Nov 7, 2014
    什么叫验证码生成包?
    random.randint(10E6,10E7) + redis
    gkiwi
        2
    gkiwi  
       Nov 7, 2014
    sorry,最近在做手机验证码...
    veezzz
        3
    veezzz  
    OP
       Nov 7, 2014
    @gkiwi 就是用于生成验证码图片的python模块
    gkiwi
        4
    gkiwi  
       Nov 7, 2014   ❤️ 1
    @veezzz 你试试这个:http://codingnow.cn/language/627.html

    我本地测试ok通过,可以直接产生验证码:)

    注意修改下font_type为你的机器支持的,我用绝对路径测试ok.
    veezzz
        5
    veezzz  
    OP
       Nov 7, 2014
    @gkiwi 多谢,本来我想着验证码用得挺多的应该很多这类的模块就不用重复造轮子了,后来发现简单的实现起来其实也不是太复杂,可以自己实现一个,我找到个wheezy.captcha还不错,总之感谢你的帮助。
    bing1178
        6
    bing1178  
       Nov 8, 2014
    同求
    veezzz
        7
    veezzz  
    OP
       Nov 8, 2014
    @bing1178 wheezy.captcha 还不错https://bitbucket.org/akorn/wheezy.captcha/overview
    单文件,可以自己根据需求改,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 06:31 · PVG 14:31 · LAX 23:31 · JFK 02:31
    ♥ Do have faith in what you're doing.