//测试环境 Python 2.7
安装
pip install graphic-verification-code
使用
import gvcode img,code=gvcode.generate() img.show() print codeprint gvcode.base64()
img 是图片的地址。
code是验证码
Python #图片验证码
原文:http://www.cnblogs.com/lwsup/p/7722026.html