上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 96 下一页
摘要: 阅读全文
posted @ 2019-12-22 12:49 干it的小张 阅读(327) 评论(0) 推荐(0) 编辑
摘要: import randomfrom PIL import Image, ImageFont, ImageDraw, ImageFilterdef check_code(width=120, height=30, char_length=5, font_file='kumo.ttf', font_si 阅读全文
posted @ 2019-12-22 10:51 干it的小张 阅读(255) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image,ImageDraw#生成图片:img = Image.new("RGB",(1000,1000),(255,255,255))#有了画笔:draw = ImageDraw.Draw(img,"RGB")#添加颜色:# draw.point([100,100 阅读全文
posted @ 2019-12-21 17:59 干it的小张 阅读(273) 评论(0) 推荐(0) 编辑
摘要: MVC M: model 模型 与数据库交互 V: view 视图 HTML C:controller 控制器 流程 和 业务逻辑 MTV M:model ORM T:template 模板 HTML V:view 视图 业务逻辑 Django中的视图 FBV def add_publisher(r 阅读全文
posted @ 2019-12-19 19:42 干it的小张 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 示例: 脚本: from django.db import models# Create your models here.class Publisher(models.Model): name = models.CharField(max_length=32) def __str__(self): 阅读全文
posted @ 2019-12-19 17:07 干it的小张 阅读(309) 评论(0) 推荐(0) 编辑
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 96 下一页