PG可以一主多备,目前pg93s是主,pg93和pg93s2是备节点,在主上查询: postgres=# select usename,application_name,client_addr,state,sync_state,sync_priority from pg_stat_replicati ...
分类:
其他好文 时间:
2021-02-06 12:14:28
阅读次数:
0
最简单的链表 1 typedef struct LNode *List; 2 struct LNode { 3 ElementType Data; 4 List Next; 5 }; 6 struct LNode L; 7 List PtrL; 8 9 //建立 10 11 //求表长 12 int ...
分类:
其他好文 时间:
2021-02-06 11:58:08
阅读次数:
0
''' @Author: feizzhang Created on: 02.02.2021 ''' def split_img_to_anypieces(img_path, output_dir, ratio_w = 2, ratio_h = 2): ''' Args: img_path: the ...
分类:
编程语言 时间:
2021-02-06 11:51:02
阅读次数:
0
使用场景 导入数据时,不符合校验规则的数据给予错误提示并导出给用户看 解决方案 导入时将不符合校验规则的数据,加上errorMsg放到reqVO中,校验完成后,将reqVOS转成JSON,放到redis中,key是用户id,expired根据业务设置,导出时去redis中取数据转成List,再转成e ...
分类:
编程语言 时间:
2021-02-05 10:50:31
阅读次数:
0
如果函数的实参数量未知但是全部实参的类型都相同,我们可以使用 initializer_list类型的形参。 initializer_list 是一种标准库类型,用于表示某种特定类型的值的数组。initializer_list类型定义在同名的头文件中,它提供的操作如表所示。 initializer_l ...
分类:
其他好文 时间:
2021-02-04 12:07:50
阅读次数:
0
方法一、从发行版的源中安装(推荐) 在 Kali GNU/Linux Rolling、Ubuntu 等 Debian 衍生版中,执行如下安装命令: apt-get install fcitx fcitx-bin fcitx-tools fcitx-libs-dev fcitx-table-wbpy ...
分类:
其他好文 时间:
2021-02-04 11:46:23
阅读次数:
0
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struct ListNode{ int val; ListNode* next; }Node_t, *pNode_t; void print_l ...
分类:
编程语言 时间:
2021-02-03 11:00:00
阅读次数:
0
前面的博客介绍了Trvieww控件如何将数据导出到指定路径的excel文件,有时我们希望自己指定路径和文件名,这个就需要借助microsoft command dailog control控件。假设画面上已经有了TreeView控件,名字修改为TV,添加一个microsoft command dai ...
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different le ...
分类:
其他好文 时间:
2021-02-03 10:42:18
阅读次数:
0
打开CMD 开始菜单+Windows系统+命令提示符 右键以管理员模式运行 Win+R打开运行输入CMD 任意文件夹下,按住Shift+鼠标右键,点击“在此处打开power shell窗口” 在资源管理器的路径前加cmd+空格 左下角搜索cmd 常用Dos命令 盘符切换 D: 查看当前目录下的所有文 ...
分类:
其他好文 时间:
2021-02-03 10:35:08
阅读次数:
0