public class StatePattern { public static void main(String[] args) { Context context=new Context(); for (int i = 0; i < 10; i++) { context.handle(); } ...
分类:
其他好文 时间:
2021-04-19 16:06:54
阅读次数:
0
「图论」第2章 最小生成树课堂过关 A. 【例题1】繁忙都市 题目 代码 prim #include <iostream> #include <cstdio> #include <cstring> using namespace std; #define N 310 #define M 200010 ...
分类:
其他好文 时间:
2021-04-19 16:02:22
阅读次数:
0
1. Binder的系统日志文件 # ps -A | grep suspend system 699 1 2184444 4564 binder_ioctl_write_read 0 S android.system.suspend@1.0-service # ls /proc/699/fd -l ...
分类:
其他好文 时间:
2021-04-19 15:59:18
阅读次数:
0
Panda模块读取txt文本文件 使用pandas.read_csv函数 1. 如果txt文本中有表头(标题行) import panda as pd data = pd.read_csv('data.txt') print(data) 2. 如果txt文本中无表头 import panda as ...
分类:
编程语言 时间:
2021-04-19 15:38:55
阅读次数:
0
最近响应群里朋友完整开源之前那个博客系统,准备重构一番项目的代码,对数据库中的表决定都添加 create_by、update_by、create_time、update_time、del_flag 等字段。 当时添加表的时候没有设置默认值,现在要对二三十张表某个字段,如对 del_flag 设置默认 ...
分类:
数据库 时间:
2021-04-19 14:53:46
阅读次数:
0
题目 点这里看题目。 分析 直接来做这个有趣的问题似乎显得太过棘手,不妨考虑一个较弱的问题: \[ \sum_{u=1}^n s_u \] 假如当前根确定为 \(r\) ,那么就有: \[ \sum_{u=1}^ns_u=\sum_{u=1}^n(\operatorname{dist}(u,r)+1 ...
分类:
其他好文 时间:
2021-04-16 12:12:11
阅读次数:
0
苹果apple mac 系统检测 日常分析 软件 https://gigafiles.apple.com/#/download 现有文件可供下载。 备注 Capture Data 9.9.0 This application gathers information from your system ...
分类:
其他好文 时间:
2021-04-16 11:49:46
阅读次数:
0
首先github右上角个人点开 然后setting 然后 然后 然后 这个note我是随便填的 下面都勾选了,具体想搞明白各项什么意思的点击read more about... 最后generate token 下面有github文档的友情链接 算了 不会搞友情链接,自行复制一下吧 https:// ...
分类:
数据库 时间:
2021-04-16 11:41:01
阅读次数:
0
不多言了,看图操作三部曲 1.登陆Dell 的web idac后台 2.网络→服务→VNC 3.安装VNC Viewer,ip+端口直连 ...
分类:
其他好文 时间:
2021-04-14 12:40:30
阅读次数:
0
背景 经常做后端服务开发的同学,或多或少都遇到过 CPU 负载特别高的问题。 尤其是在周末或大半夜,突然群里有人反馈线上机器负载特别高,不熟悉定位流程和思路的同学可能登上服务器一通手忙脚乱,定位过程百转千回。 对此,也有不少同学曾经整理过相关流程或方法论,类似把大象放进冰箱要几步 传统的方案一般是4 ...
分类:
其他好文 时间:
2021-04-14 12:37:46
阅读次数:
0