//第一种 public static void main(String[] args) throws Exception { // 1.下载地址 URL url = new URL("需要下载的文件地址例如:https://tse2-mm.cn.bing.net/th/id/OIP.V0bcfKT ...
分类:
编程语言 时间:
2021-01-13 11:19:10
阅读次数:
0
SELECT * FROM carregisterinfo a WHERE (a.plate) IN ( SELECT plate FROM carregisterinfo GROUP BY plate HAVING count(*) >= 1 ) AND id IN ( SELECT max(id ...
分类:
数据库 时间:
2021-01-13 11:17:42
阅读次数:
0
会员管理页面接口调通 现在来开发我们的会员管理页面,我们获取会员数据的接口格式如下 { "code": "2001", "success": true, "msg": "", "total": 78, "data": [ { "id": 30, "update_time": "2020-06-11 ...
分类:
Web程序 时间:
2021-01-13 11:14:25
阅读次数:
0
1.怎么停止一个正在运行的springboot项目ps -ef | grep tomcatkill -9 进程id 杀掉进程2.查看本机某个端口是否监听:netstat -anlp | grep 88883.直接回到根目录 cd /4.tar -xvf dist.tar //解压 tar包解压到一个 ...
分类:
系统相关 时间:
2021-01-13 11:12:00
阅读次数:
0
需求: 1.需要往数据库插入批量数据,且数据需要随机,带有日期格式的数据。 2.查看目的接收表,存在唯一key,字段2是日期格式。其他数据可以一样。 首先需要写一个链接数据库的函数:import MySQLdb class MySql(): def __init__(self, db): self. ...
分类:
数据库 时间:
2021-01-13 10:54:27
阅读次数:
0
工作中有一张类型信息表,有时候需要不同的类型信息需要多次扫描这张表,表很大的时候影响效率。 优化前: select t1.fa_id,t2.srch_char_val,t3.srch_char_val from (select fa_id from cisadm_ods.ods_cis_ci_fa_ ...
分类:
其他好文 时间:
2021-01-13 10:40:03
阅读次数:
0
先导包,pip install torchsummary 然后 from torchsummary import summary model = FPN() y = summary(model, (3, 224, 224), device="cpu") print(y) ...
分类:
其他好文 时间:
2021-01-12 11:17:57
阅读次数:
0
前言 ? 操作系统以及Mysql数据库的实时性能状态数据尤为重要,特别是在有性能抖动的时候,这些实时的性能数据可以快速帮助你定位系统或Mysql数据库的性能瓶颈,镜像你在Linux系统上使用top、iostat等命令工具一样,可以立刻定位OS的性能瓶颈是在I/O还是CPU上,所以手机和展示这些性能数 ...
分类:
数据库 时间:
2021-01-12 11:16:42
阅读次数:
0
记录几个坑 优化器在表行数比较少的时候 会使用全表扫描,会造成全表所有的行加锁,所以需要使用force index 强制使用索引 来实现gap-lock(间隙锁)的应用 next-lock 加锁 会锁住 第一个不满足条件行 例如下表 number有唯一索引 id name number 1 Jack ...
分类:
数据库 时间:
2021-01-12 11:15:53
阅读次数:
0
Ubuntu 18.04 (Bionic) 安装 MongoDB (Install MongoDB Community Edition on Ubuntu) 查看 Ubuntu 版本 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu ...
分类:
数据库 时间:
2021-01-12 11:08:09
阅读次数:
0