题:http://hihocoder.com/problemset/problem/1445 分析:后缀自动机模板 #include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace st ...
分类:
其他好文 时间:
2020-07-05 15:17:04
阅读次数:
69
在安装k8s过程中,执行kubectl apply -f kube-flannel.yml,会出现flannel Init:ImagePullBackOff错误,原因是quay.io镜像地址在国内访问不了,执行命令 sed -i 's/quay.io/quay-mirror.qiniu.com/' ...
分类:
其他好文 时间:
2020-07-05 10:35:19
阅读次数:
281
1.JSX的使用 class JSXBaseDemo extends React.Component { constructor(props) { super(props) this.state = { name: 'xiaoming', imgUrl: 'https://img1.mukewang ...
分类:
Web程序 时间:
2020-07-04 20:48:13
阅读次数:
84
问题背景 在ContOS服务器上测试项目 解决方案 谷歌查询 解决步骤 降低matplotlib版本至2.2.2 pip3 install matplotlib==2.2.2 出现新的问题,ImportError: Matplotlib qt-based backends require an ex ...
分类:
编程语言 时间:
2020-07-03 23:38:57
阅读次数:
347
基本建图套路,从单词头向单词尾连一条边,答案就是是否存在一条欧拉路径 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int p[N]; int din[N],dout[N]; int st[N]; int find( ...
错误日志: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHos ...
分类:
编程语言 时间:
2020-07-03 19:52:09
阅读次数:
84
1. 修改指定字符后面的随机内容 例:修改mcctconf中testrun:后面的随机内容为xxx sed -r 's/(testrun:)[^2113]*/\1xxx/' mcctconf 例:打印sed修改mcctconf中testrun:后面的随机内容为xxx所在整行内容 sed -n -r ...
分类:
其他好文 时间:
2020-07-02 18:20:12
阅读次数:
82
#!/bin/bash #xtrabackup流式压缩热备份#预配置SSH免密码登陆并确认通过 #远程IP及账户等基础信息REMOTE_HOST="192.168.31.101"REMOTE_HOST_SSH_PORT="22"REMOTE_DB_USERNAME="root"REMOTE_DB_P ...
分类:
其他好文 时间:
2020-07-02 13:26:57
阅读次数:
42
python基础复习(二) 一、文件操作 python中的文件操作 1. 打开文件,得到文件句柄并赋值给一个变量 f=open('a.txt','r',encoding='utf-8') #默认打开模式就为r 2. 通过句柄对文件进行操作 data=f.read() 3. 关闭文件 f.close( ...
分类:
编程语言 时间:
2020-07-01 19:55:49
阅读次数:
61
在学习 Spring 的时候,我们必须得有个整体性的概念。 这个概念就是: Spring 到底是什么? 官网给了如下的介绍: The Spring Framework provides a comprehensive programming and configuration model for m ...
分类:
编程语言 时间:
2020-07-01 16:15:49
阅读次数:
77