摘要: 安装 captcha 库 pip install captcha 基本使用方法(生成图片验证码) import captcha from captcha.image import ImageCaptcha # 设置图片宽高 image = ImageCaptcha(width=200, height 阅读全文
posted @ 2023-12-07 16:29 wellplayed 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 在python项目中,需要有一个txt文件requirements.txt,里面面书写当前项目中所有的依赖 书写规范如下: requirements.txt 内 django==3.2.20 pillow mysqlclient 以后使用项目时输入以下命令: pip install -r requi 阅读全文
posted @ 2023-12-07 14:46 wellplayed 阅读(45) 评论(0) 推荐(0) 编辑