本文档使用docker容器运行seata-server:1.0.0版本,并以nacos作为注册中心与配置中心,使用mysql作为seata数据库 3.1 docker 拉取seata-server:1.0.0镜像 1 docker pull seataio/seata-server:1.0.0 3. ...
分类:
其他好文 时间:
2020-04-09 14:17:27
阅读次数:
1052
1 并查集 (不封装,按秩合并) int ancestor(int x) {return p[x] == x ? x : (p[x] = ancestor(p[x]));} bool test(int x, int y, bool un = false) { if ((x = ancestor(x) ...
分类:
其他好文 时间:
2020-04-09 12:35:57
阅读次数:
59
ubuntu1804安装了搜狗拼音,本来用的好好,有一天突然闪了一个错误,就无法设置了。只剩下ibus。 忍受了一周之后,还是想换回搜狗。于是在网上找了各种资料,要弄回来呀,不然输入太慢了。 方法一、重新安装 先是下载了新的.deb文件,直接双击安装就好,安装很顺利。然后,选择左下角【应用程序】,选 ...
分类:
系统相关 时间:
2020-04-08 22:43:19
阅读次数:
137
上下文管理器 在使用Python编程中,可以会经常碰到这种情况:有一个特殊的语句块,在执行这个语句块之前需要先执行一些准备动作;当语句块执行完成后,需要继续执行一些收尾动作。 例如:当需要操作文件或数据库的时候,首先需要获取文件句柄或者数据库连接对象,当执行完相应的操作后,需要执行释放文件句柄或者关 ...
分类:
其他好文 时间:
2020-04-08 20:59:51
阅读次数:
79
Concentrated on the listed 3 things PCIe total solutions, especially the cutting-edge technology ... Coding quality, matrurity and efficiency (C,Bash, ...
分类:
其他好文 时间:
2020-04-08 18:47:52
阅读次数:
74
PSP2.1 | Personal Software Process Stages | 预估耗时(分钟)| 实际耗时(分钟) |: :| :| : Planning|计划|| Estimate|估计这个任务需要多少时间|| Development|开发|| Analysis|需求分析 (包括学习新技 ...
分类:
其他好文 时间:
2020-04-08 17:36:23
阅读次数:
73
一、对新时代中国特色社会主义做词频统计 import jieba txt = open("新时代中国特色社会主义.txt","r",encoding="utf-8").read() words = jieba.lcut(txt) counts = {} for word in words: if l ...
分类:
其他好文 时间:
2020-04-08 11:34:30
阅读次数:
103
修改web.xml为最新格式 将Maven的结构搭建完整 ...
分类:
其他好文 时间:
2020-04-08 10:13:27
阅读次数:
72
关于Python中类和函数及方法的调用,我们写在这个demo.py文件,具体代码如下: # coding = utf-8 class ClassA(object): string1 = "这是一个字符串。" def insteancefunc(self): print('这是一个实例方法。') pr ...
分类:
编程语言 时间:
2020-04-08 10:08:01
阅读次数:
63
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s ...
分类:
其他好文 时间:
2020-04-08 09:57:26
阅读次数:
67