💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
>[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()) ~~~