BBS登录功能 一.后端实现 1.实现验证码 from PIL import Image, ImageDraw, ImageFont import random from io import BytesIO, StringIO def get_color(): return random.randint(0, 255), random.randint(0, 255), random.randint(0, 255) def get_code(request): '图片验证' # img:标签支持1…