#[derive(Debug, Clone)] struct Work { //消息实体,存储消息 id: i32 } struct WorkMaster { //消息管理者属性 workers: Vec<Box<Worker>> //存储注册的接收者。每个接收者须实现Worker接口才能注册进。 ...
分类:
数据库 时间:
2021-07-01 16:45:32
阅读次数:
0
1.show databases 展示所有数据库 2.建表 column : 列名 PK:唯一主键 NN:不能为空 AI:自动增加 3.修改删除表 4.使用库 5.屏蔽 -- 加空格 切近加空格 6.插入指定的表数据 常用的增删改查 和 模糊搜索 排序 对应下面demo即可 -- show tabl ...
分类:
数据库 时间:
2021-07-01 16:40:54
阅读次数:
0
一、依赖倒转原则介绍 二、依赖倒转原则引入 1.方式一(传统方式) public class DependencyInversion { public static void main(String[] args) { Person person = new Person(); person.rec ...
分类:
其他好文 时间:
2021-07-01 16:40:10
阅读次数:
0
近日,查看网站快照时,发现从百度快照页点击过去后,都跳转到了一个体裁站,但是直接访问,没有任何跳转,打开页面发现有一个js文件被篡改了。代码如下: 1 <script type="text/javascript"> 2 var je1 = /(sogou|soso|baidu|google|youd ...
分类:
Web程序 时间:
2021-07-01 16:30:31
阅读次数:
0
current status: We have a remote repository and a local project repository with no git configured. We want to push to remote and create new branch. Pr ...
分类:
其他好文 时间:
2021-07-01 16:24:13
阅读次数:
0
//produceTypeList-produceType:存在produceTypeList中不存在produceType中 let diff1 = produceTypeList.filter(function(v){ return produceType.indexOf(v) -1 }).jo ...
分类:
编程语言 时间:
2021-06-30 18:45:31
阅读次数:
0
指针函数 #include <stdio.h> #define uint8 unsigned char #define uint16 unsigned short #define uint32 unsigned int uint8 get_device_type_flash() { printf(" ...
分类:
编程语言 时间:
2021-06-30 18:21:24
阅读次数:
0
通常sort和uniq一起使用,sort在前,uniq在后。 uniq -c是把个数统计在一行的最前面;uniq -u是去重但不打印重复个数。 但uniq的去重是相邻且相同的缩为一个 # cat data1 1 2 2 2 2 3 3 1 1 1 # cat data1 |uniq -c 1 1 4 ...
分类:
其他好文 时间:
2021-06-30 18:17:48
阅读次数:
0
SELECT Subject, Semester, Count(*) FROM Subject_Selection GROUP BY Subject, Semester ...
分类:
数据库 时间:
2021-06-30 18:14:21
阅读次数:
0
摘自微信公众号:学习曾国藩1、要计较增量而不是存量勤俭节约是中华民族的传统美德,从小在我们心里节约的概念就根深蒂固。但是刻意地去节省就会变成富有的人吗?事实上并非如此,真正富有的人是通过不断的赚钱才让自己的财富不断增加。赚更多的钱比省钱重要万倍,这就是要计较增量而不是存量的道理。 2、要计较拓展而不 ...
分类:
其他好文 时间:
2021-06-30 18:08:16
阅读次数:
0