SmartSql = MyBatis + Cache(Memory | Redis) + R/W Splitting +Dynamic Repository + Diagnostics ...... ...
分类:
数据库 时间:
2019-05-17 12:10:28
阅读次数:
157
declare @N int=0 while @N<=100 begin print @N; begin if @N%2=0 print getdate(); else select GETDATE(); end set @N=@N+1 end ...
分类:
数据库 时间:
2019-05-15 14:24:44
阅读次数:
132
s( Single-Resposibility Principle ): 单一职责原则 o( Open-Closed principle ): 开放封闭原则 l( Liskov-Substituion Principle ): 里氏原则 i( Interface-Segregation Princi ...
分类:
编程语言 时间:
2019-05-15 12:31:58
阅读次数:
121
棋盘:(状压dp) 传送门:https://www.cometoj.com/contest/38/problem/B?problem_id=1535 题目描述 小猫有一个 2×N 的棋盘,每一个格子放着一个黑棋子或白棋子。 小熊觉得小猫的棋盘不够好看,想要把棋盘上的一部分白棋子替换成黑棋子,使得所有 ...
分类:
其他好文 时间:
2019-05-13 21:26:12
阅读次数:
145
题目:http://acm.hdu.edu.cn/showproblem.php?pid=3911 题意:给定序列(只有0,1),修改是将0变成1,1变成0,询问是查询区间最大连续1的数目。 用线段树维护7个变量: 第1,2个是区间的最大前缀0,和前缀1 第3,4个是区间的最大后缀0,和后缀1 第5 ...
分类:
其他好文 时间:
2019-05-13 21:23:48
阅读次数:
212
idea debug 突然无法启动,试了多种方法,最后通过修改JMX port搞定 参考资料: https://blog.csdn.net/yhwpeng/article/details/78734100 ...
分类:
编程语言 时间:
2019-05-13 16:07:27
阅读次数:
142
一:nonlocal关键字 nonlocal 用来声明外层的局部变量。 global 用来声明全局变量。 运行结果: inner:b 10 outer:b 20 a: 200 二:LEGB规则 Python在查找“名称”时,是按照LEGB规则查找的: Local-->Enclosed-->Globa ...
分类:
编程语言 时间:
2019-05-12 01:42:31
阅读次数:
152
pillow模块 PIL:Python Imaging Library,已经是Python平台事实上的图像处理标准库了。PIL功能非常强大,但API却非常简单易用。 由于PIL仅支持到Python 2.7,加上年久失修,于是一群志愿者在PIL的基础上创建了兼容的版本,名字叫Pillow,支持最新Py ...
分类:
其他好文 时间:
2019-05-10 21:56:32
阅读次数:
166
转自:https://www.cnblogs.com/softidea/p/4004076.html 在项目中碰到了一个应用异常,从表象来看应用僵死。查看Weblogic状态为Running,内存无溢出,但是出现多次线程堵塞。查看Weblogic日志,发现程序出现多次Time Out。 我们知道,W ...
分类:
数据库 时间:
2019-05-10 20:47:30
阅读次数:
666
1、遍历key值 >>> a {'a': '1', 'b': '2', 'c': '3'} >>> for key in a: print(key+':'+a[key]) a:1 b:2 c:3 >>> for key in a.keys(): print(key+':'+a[key]) a:1 b ...
分类:
编程语言 时间:
2019-05-10 20:33:59
阅读次数:
137