上传者: 41947858
|
上传时间: 2021-07-22 12:01:37
|
文件大小: 236B
|
文件类型: PY
from captcha.image import ImageCaptcha
import random as r
ic = ImageCaptcha()
l = []
for i in range(4):
j = r.randint(0, 9)
l.append(j)
print(l)
s = "{}{}{}{}".format(*l)
ic.write(s, 'test' + '.png', format='png')