优化验证码字符

This commit is contained in:
mkg
2021-08-26 12:06:27 +08:00
parent 30f9774ab1
commit 233241c962
+1 -1
View File
@@ -4,7 +4,7 @@ from PIL import Image
from random import choices
def gen_captcha(content='0123456789'):
def gen_captcha(content='2345689abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'):
""" 生成验证码 """
image = ImageCaptcha()
# 获取字符串