【文件属性】:
文件名称:VerifyCode:Python生成随机验证码模块
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-13 02:21:33
Python
VerifyCode
Python生成随机验证码模块
安装
git clone https://github.com/TengTengCai/VerifyCode.git
该模块依赖Pillow图形处理库, 使用之前请先安装Pillow
pip install pillow
使用
直接引入模块即可
from VerifyCode import VerifyCode # 导人包
vcode = VerifyCode() # 生成验证码对象
str_code = vcode.verify_code # 获取生成的字符串验证码
image_code = vcode.verify_image # 获取生成的图片验证码
参数
VerifyCode(length=4, width=160, height=50, font_size=40)
"""
验证码初始化方法
:param le
【文件预览】:
VerifyCode-master
----VerifyCode.py(4KB)
----README.md(832B)