vi /etc/hosts 两个节点都执行 #Public IP10.10.10.10 shdb110.10.10.20 shdb2#Virtual IP10.10.10.30 shdb1-vip10.10.10.40 shdb2-vip#Private IP192.168.7.10 shdb1-p ...
分类:
其他好文 时间:
2020-08-09 09:18:50
阅读次数:
74
首先从ES的支持的字段说起,ES文档中字段有多种类型 官方文档。 这几个比较常用: text,keyword,integer,float,boolean,object,geo_point(地理坐标),geo_shape(描述地理区域),date. 注:不要以为date只能表示 2015-01-01 ...
分类:
其他好文 时间:
2020-08-07 18:08:11
阅读次数:
84
注意建树范围开大一点。 x 先让其 +1 ,树状数组不能维护0 这个点。 int n; int c[32005]; struct Point { int x, y; Point(int _x = 0, int _y = 0) { x = _x; y = _y; } friend bool opera ...
分类:
编程语言 时间:
2020-08-07 12:36:18
阅读次数:
81
1 class point: 2 row=0 3 col=0 4 def __init__(self,row,col): 5 self.row=row 6 self.col=col 7 def copy(self): 8 return point(row=self.row,col=self.col) ...
分类:
编程语言 时间:
2020-08-01 21:35:06
阅读次数:
113
Optional of 与 ofNullable 的区别 /** * Returns an {@code Optional} with the specified present non-null value. * * @param <T> the class of the value * @par ...
分类:
其他好文 时间:
2020-07-30 14:39:39
阅读次数:
64
(1)无边框窗口的拖动事件 新建一个MenuStrip,然后注册其MouseMove与MouseDown事件 private Point formPoint = new Point(); public MainForm() { InitializeComponent(); } private voi ...
struct point{ double x, y; }; struct line{ double A, B, C;//Ax + By + C = 0; }; line PPL(point a, point b){// 两点确定直线的一般式 if(a.x == b.x) return line{1, ...
分类:
其他好文 时间:
2020-07-29 17:50:20
阅读次数:
62
1、居中弹出 $k.alert({content:'居中弹出'}); 查看效果 2、左上角弹出 $k.alert({ content:'左上角弹出', style:{left:0,top:0} }); 查看效果 3、右下角弹出 $k.alert({ content:'右上角弹出', style:{l ...
分类:
其他好文 时间:
2020-07-29 15:28:39
阅读次数:
95
Arrays类 基本概念: 该类包含用于操作数组的各种方法(如排序和搜索)。 Arryas类中的对象都是用static修饰的静态方法,在使用的时候可以直接用类名调用,而**"不用"使用对象来调用**(注意:是“不用”而不是“不能”) 如果指定的数组引用为空,则该类中的方法都抛出一个NullPoint ...
分类:
其他好文 时间:
2020-07-29 12:39:19
阅读次数:
66
1 短信接口频率限制 # throttlings.py from rest_framework.throttling import SimpleRateThrottle class SMSThrotting(SimpleRateThrottle): scope = 'sms' def get_cac ...
分类:
其他好文 时间:
2020-07-27 17:46:17
阅读次数:
100