今天运行redis服务端时候出现这个问题: D:\php\software\redis>redis-server.exe [484] 04 Dec 21:49:00.797 # Warning: no config file specified, using the default config. ...
分类:
其他好文 时间:
2021-01-21 11:00:18
阅读次数:
0
EF和EF Core 的DbContext类实现IDisposable接口。因此,很多最佳编程实践中都建议你将它们放在一个using()块中。不幸的是,至少在Web应用程序中,这样做通常不是一个好主意。 我与许多从.NET Framework迁移到.NET Core和.NET 5的客户一起工作,其中 ...
分类:
数据库 时间:
2021-01-21 10:57:23
阅读次数:
0
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 ...
分类:
其他好文 时间:
2021-01-21 10:52:05
阅读次数:
0
sort函数小结 1.要使用头文件#include<algorithm>和using namespace std; 2.对基本类型数组排序 .sort(数组名+n1,数组名+n2) 对下标范围[n1,n2)的元素从小到大排序,下标为n2的元素不在排序区间内 sort(数组名+n1,数组名+n2,gr ...
分类:
其他好文 时间:
2021-01-21 10:50:18
阅读次数:
0
概述 模板出自kuangbin的博客 典型应用: 给你两个字符串,寻找其中一个字符串是否包含另一个字符串,如果包含,返回包含的起始位置。 (1) 头文件 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1e5+10; ...
分类:
编程语言 时间:
2021-01-21 10:42:47
阅读次数:
0
C++算法板子 高精度 高精度推荐 用python来写,这里的是C++的高精度运算模板 索引: 高精 * 低精 高精 + 高精 高精 - 高精 高精 / 低精 1、高精 * 低精 #include <iostream> #include <vector> using namespace std; v ...
分类:
编程语言 时间:
2021-01-19 12:26:52
阅读次数:
0
#include <iostream> #include <vector> #include <algorithm> using namespace std; //原理:动态规划法 //到达每个阶梯都有一个理论上的最小体力minCost,按照minCost[i] = min(minCost[i-2] ...
分类:
其他好文 时间:
2021-01-19 12:19:43
阅读次数:
0
写在前边 链接:Codeforces Round #693 (Div. 3) 没有打,闲的没事补一下题。 A. Cards for Friends 链接:A题链接 题目大意: 给定一张$w*h$的卡片,每次可以切成$\cfrac{2} * h$或者$\cfrac{2} * w$的两张卡片,给定一个整 ...
分类:
其他好文 时间:
2021-01-19 12:15:09
阅读次数:
0
发布订阅模式是 生产者 通过这个路由发送到绑定额多个队列中去,然后不同的 消费者 消费不同的队列 从而做到发布订阅模式 1. 生产者 using RabbitMQMsgProducer.MessageProducer; using Microsoft.Extensions.Configuration ...
分类:
其他好文 时间:
2021-01-19 12:14:10
阅读次数:
0
收集日志后,日志级别分类,error 级别发送运维邮件需单独处理,其他记录 直接交换机,工作方式类似于单播,Exchange会将消息发送完全匹配Routing_key的Queue;筛选消息通过key进行; 1. 生产者 using RabbitMQMsgProducer.MessageProduce ...
分类:
其他好文 时间:
2021-01-19 12:13:34
阅读次数:
0