urls 中 进行注册 url(r'grades',views.grades) views 中编写函数 def grades(request): grades_list = Grade.objects.all() # 使用 locals 获取本地变量 return render(request,'g ...
分类:
其他好文 时间:
2020-05-18 12:47:22
阅读次数:
63
1. 读邮件数据集文件,提取邮件本身与标签。 列表 numpy数组 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" import cs ...
分类:
其他好文 时间:
2020-05-17 21:58:56
阅读次数:
91
有两种原因 数据库没有授权 服务器防火墙没有开放3306端口 一、数据库没有授权 对于mysql数据库没有授权,只需要用一条命令就可以了 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTIO ...
分类:
数据库 时间:
2020-05-17 21:44:52
阅读次数:
106
1、数字水印置乱 clc; clear all; o = imread('lena.jpg'); subplot(2,3,1),imshow(o),title('原始图像'); w = imread('shuiyin.png'); subplot(2,3,2),imshow(w),title('原始 ...
分类:
其他好文 时间:
2020-05-17 17:52:28
阅读次数:
109
需求: 3、写一个商品管理的程序 功能1:添加商品 功能2:删除商品信息 功能3:修改商品信息 功能4:查看商品,输入all,查看所有商品,输入单个商品名称查看单个商品信息 商品格式存在文件中,goods.json 例子是在goods.py import json FILE_NAME = 'good ...
分类:
其他好文 时间:
2020-05-16 20:42:29
阅读次数:
94
一.安装 在我们安装的时候,需要用到的PhantomJs,Pyspider依赖于这个隐形的浏览器。window下需要配置环境变量 使用命令安装: pip3 install pyspider 测试安装成功的命令: pyspider all 在安装的情况下,会出现很多的错误,以下是我安装出现的错误 情况 ...
分类:
其他好文 时间:
2020-05-16 16:43:20
阅读次数:
68
原文:SQL SERVER 的窗体函数OVER的使用:row_number/rank/dense_rank 举个例子给大家加深印象,也方便理解: 1.目前有这几笔数据: Select '1班' banji,'张三' as name ,56 as score into #studentSoure un... ...
分类:
数据库 时间:
2020-05-16 00:30:14
阅读次数:
93
目录 1023 1037 1321 2021 2380 2733 3635 5839 5840 5842 1023: Taxi Cab Scheme 返回顶部 描述 Running a taxi station is not all that simple. Apart from the obvio ...
分类:
其他好文 时间:
2020-05-15 21:51:39
阅读次数:
95
旋转圆形图片: .pic:hover{ transform: rotate(360deg); transition: all 1.5s ease ; } .pic{ border-radius: 500px; border: solid #dddfdc; } 鼠标放置完全显示: .ganying:h ...
分类:
Web程序 时间:
2020-05-15 21:50:42
阅读次数:
214
%% 清屏 clc; clear all; close all; %% 数据预处理 data = importdata('studentscores.csv'); x = data.data(:,1); y = data.data(:,2); % 原始数据的散点图 figure plot(x,y,' ...
分类:
其他好文 时间:
2020-05-15 21:50:10
阅读次数:
86