码迷,mamicode.com
首页 >  
搜索关键字:task model    ( 24194个结果
4.基本权限验证之动态生成一级菜单
class Permission(models.Model): """ 权限表 """ title = models.CharField(verbose_name='标题', max_length=32) url = models.CharField(verbose_name='含正则的URL', ...
分类:其他好文   时间:2020-09-16 12:26:34    阅读次数:32
v-model绑定vuex中的数据
分解v-model <template> <div> <input type="text" :value='$store.state.message' @input='updateMessage'> </div> </template> <script> export default { metho ...
分类:其他好文   时间:2020-09-16 12:04:44    阅读次数:67
让 antd Model 变成可拖动弹窗
亲测可用,有需要留言,包教包会。? 1. 新建一个 Drag.js 文件 class Drag { constructor(id) { this.disX = 0; this.disY = 0; this.box = document.getElementsByClassName(id)[0]; t ...
分类:其他好文   时间:2020-09-14 19:18:00    阅读次数:43
Python采集CSDN博客排行榜数据
文章目录 前言 网络爬虫 搜索引擎 爬虫应用 谨防违法 爬虫实战 网页分析 编写代码 运行效果 反爬技术 前言 很多人学习python,不知道从何学起。很多人学习python,掌握了基本语法过后,不知道在哪里寻找案例上手。很多已经做案例的人,却不知道如何去学习更加高深的知识。那么针对这三类人,我给大 ...
分类:编程语言   时间:2020-09-14 19:03:47    阅读次数:48
echarts使用时报错cannot read property 'querycomponents' of undefined解决方案
问题 在使用echarts生成图表的时候,报错cannot read property 'querycomponents' of undefined 解决 通过跟踪代码发现是eModel.querycomponents中eModel为undefined,初步判断是eModel没有生成. 解决方法就是 ...
分类:其他好文   时间:2020-09-14 19:02:26    阅读次数:97
进程池和线程池
''' from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time,random,os def task(name,n): print('%s%s is running' %(name,os.ge ...
分类:编程语言   时间:2020-09-12 21:45:01    阅读次数:36
KNN如何对手写数字进行识别(python)
手写数字数据集是个非常有名的用于图像识别的数据集。数字识别的过程就是将这些图片与分类结果0-9一一对应起来。我们可以直接从sklearn中加载自带的手写数字数据集: from sklearn.model_selection import train_test_split from sklearn i ...
分类:编程语言   时间:2020-09-12 21:38:04    阅读次数:45
8080端口被idea占用
如果cmd输入netstat -ano 然后找到8080对应的pid然后taskkill /F /pid 12712(对应的pid)一般来说是可以解决端口占用问题的,但是如果这时idea就被关掉了...说明占用8080端口的正是idea自己...好尴尬 我是这样解决的: 打开idea,file--s ...
分类:其他好文   时间:2020-09-11 16:13:59    阅读次数:50
NMs之后正负样本(及真正例)的确定和map的计算
""" 评价模型的核心函数:根据得到的正负样本,输出:P,R,map等 """ #验证集或测试集都可以用 def evaluate(model, path, iou_thres, conf_thres, nms_thres, img_size, batch_size): model.eval() # ...
分类:其他好文   时间:2020-09-11 14:15:31    阅读次数:46
Django基础7--模板系统
1.使用模板系统 在之前的model.py文件中新增加Detail from django.db import models # Create your models here. class ProjectInfo(models.Model): """ 项目信息模型 """ project_name ...
分类:其他好文   时间:2020-09-10 22:55:59    阅读次数:37
24194条   上一页 1 ... 54 55 56 57 58 ... 2420 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!