场景: 准备做一个供前端搜索的功能,但是搜索的字段是指定的,可选项是数据库中该字段有的,因为这样的去重获取字段可选项,逻辑都是一样的,所以可以在一个方法里面写,也就出现了Model.objects.filter搜索的是一个动态可变的字段 思路: 后来在django.shortcuts.get_obj ...
分类:
其他好文 时间:
2021-04-22 16:35:11
阅读次数:
0
将设备连接网线, 登录路由器,查看设备IP 打开Xshell进行连接 用户名:root 密码:fa 连接成功 执行 apt-get install xrdp apt-get install vnc4server tightvncserver reboot 启动xrdp #/etc/init.d/xr ...
分类:
其他好文 时间:
2021-04-22 16:12:52
阅读次数:
0
具体错误如下,同时伴有collecting package metadata:加载时间巨长 解决方案: 输入conda clean --all清除之前未完成的conda安装的包就可以正常创建环境了。 感谢CSDN的这位伙伴https://blog.csdn.net/weixin_44424340/a ...
分类:
其他好文 时间:
2021-04-22 16:04:55
阅读次数:
0
二分查找的基本框架 int binarySearch(int[] nums, int target) { int left = 0, right = ...; while(...) { int mid = left + (right - left) / 2; if (nums[mid] == tar ...
分类:
其他好文 时间:
2021-04-22 15:54:34
阅读次数:
0
<?php //index.php 公众号后台配置的路径是这个index.php $wechatObj = new wechat(); $wechatObj->responseMsg(); class wechat { //返回消息模板 private $textTpl = [ 'text' => ...
分类:
微信 时间:
2021-04-22 15:53:55
阅读次数:
0
get请求的参数都在url里,post的请求相对于get请求多了个body部分 常见的 post 提交数据类型有四种: 1.第一种:application/json: 这是最常见的 json 格式,如{"input1":"xxx","input2":"ooo","remember":false} 2 ...
分类:
其他好文 时间:
2021-04-22 15:43:16
阅读次数:
0
Date dNow = new Date(); //当前时间Date dBefore = new Date();Calendar calendar = Calendar.getInstance(); //得到日历calendar.setTime(dNow);//把当前时间赋给日历calendar.a ...
分类:
其他好文 时间:
2021-04-22 15:38:17
阅读次数:
0
#!/usr/bin/env python # -*- coding:utf-8 _*- """ @author:zhoutao @file: 金山 V8 终端安全系统 默认弱口令漏洞.py @time: 2021/04/20 @function: """ import requests impor ...
分类:
其他好文 时间:
2021-04-22 15:22:34
阅读次数:
0
进入查看:2021-2022学年英语周报八年级第35期答案及试题 Unit 31. advantage n. 有利条件; 优点disadvantage n. 不利条件; 不便之处2. graduate vi. 毕业 n. 大学毕业生graduation n. 毕业3. determine v. 决心 ...
分类:
其他好文 时间:
2021-04-22 15:19:36
阅读次数:
0
PHP环境搭建XAMPP @ 安装XAMPP(服务器搭建) 从官网下载XAMPP,由于一些不可说的的原因,官网下载极慢,届时会分享网盘,下载后安装,一直Next即可,我的安装在D盘 环境变量设置 然后就是必须的环境变量添加,如图把安装路径加入 可能会遇到的问题 Start时的错误,我这里是端口冲突, ...
分类:
Web程序 时间:
2021-04-22 15:14:37
阅读次数:
0