企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>[success] # 使用 ~~~ from until.check_code import create_validate_code from io import BytesIO # Create your views here. def check_code(request): stream = BytesIO() img,code = create_validate_code() img.save(stream,"PNG") request.session['CheckCode'] = code return HttpResponse(stream.getvalue()) ~~~