静态代理模式有一个很严重的缺点,就是需要生成一个代理类,很麻烦,不推荐 ...
分类:
其他好文 时间:
2018-08-12 12:02:16
阅读次数:
109
1 创建topic: kafka-topics.sh --create --zookeeper 3.3.3.3:2181 --replication-factor 1 --partitions 3 --topic test_one replication-factor 副本的个数 (因为创建的副本都 ...
分类:
其他好文 时间:
2018-08-11 23:25:12
阅读次数:
241
Math Operator Functions 数学运算符函数 ADD - Vector Arithmetic Add 函数名:ADD 名称:向量加法运算 real = ADD(high, low) DIV - Vector Arithmetic Div 函数名:DIV 名称:向量除法运算 real ...
分类:
其他好文 时间:
2018-08-11 22:35:07
阅读次数:
181
Momentum Indicator Functions ADX - Average Directional Movement Index 函数名:ADX 名称:平均趋向指数 简介:使用ADX指标,指标判断盘整、振荡和单边趋势。 公式: 一、先决定股价趋势(Directional Movement, ...
分类:
其他好文 时间:
2018-08-11 22:34:41
阅读次数:
277
题解:https://blog.csdn.net/lixuepeng_001/article/details/50577932 题意:给定范围1-b和1-d求(i,j)=k的数对的数量 ...
分类:
其他好文 时间:
2018-08-11 22:03:50
阅读次数:
126
Problem Link: http://codeforces.com/contest/932/problem/F Problem Statement: F. Escape Through Leaf time limit per test: 3 seconds memory limit per te ...
分类:
其他好文 时间:
2018-08-11 21:59:43
阅读次数:
200
C++ STL之min_element()与max_element()(取容器中的最大最小值) min_element()和max_element 头文件:#include<algorithm> 作用:返回容器中最小值和最大值。max_element(first,end,cmp);其中cmp为可选择 ...
分类:
其他好文 时间:
2018-08-11 21:56:20
阅读次数:
119
传送门 思路:由于n<=6,我们可以枚举油滴放置顺序的排列,然后DFS。对于每个油滴,其能扩散的最小半径为min{到四个边界的距离,到已添加的点的扩散范围的最小距离}。最后注意四舍五入:printf("%d",(int)ans+0.5);(其中ans为double类型)。 AC Code: ...
分类:
其他好文 时间:
2018-08-11 20:57:20
阅读次数:
120
Django图书管理系统 创建一个项目 配置settings.py文件(此处填写了后续需要配置的所有内容) __init__.py文件,引入pymysql模块,使用mysql数据库 app01/modles.py文件,创建数据表 urls.py文件,配置路由 app01/views.py文件 fro ...
分类:
其他好文 时间:
2018-08-11 20:52:58
阅读次数:
125
dir (directory) :列出当前目录下的文件以及文件夹 md (make directory): 创建目录 rd (remove directory):删除目录 cd (change directory):进入指定目录 cd.. : 退回到上一级目录 cd\ : 退回到根目录 del:删除... ...