信息收集 poc /tmp/payload.cookie 替换发包的rememberMe=X 参考 https://github.com/insightglacier/Shiro_exploit https://github.com/Medicean/VulApps/tree/master/s/sh ...
分类:
其他好文 时间:
2020-05-05 16:20:42
阅读次数:
981
leetcode 139 word break class Solution { public: bool wordBreak(string s, vector<string>& wordDict) { unordered_set<string> wordset(wordDict.begin(),w ...
分类:
其他好文 时间:
2020-05-05 11:04:03
阅读次数:
59
参数 初始温度 $tmp$, 降温系数 $\Delta$。 接受不优解的条件 $$e^{\frac{ 当前解与最优解的差}{tmp}} rand\_max 1e 14) { / 随机生成一个新解, 当前解与新解的距离 通常与温度有关 / if(calc_ans(新解) 优于 ans) { ans = ...
分类:
其他好文 时间:
2020-05-04 19:36:23
阅读次数:
77
https://www.cnblogs.com/grandyang/p/4271456.html leetcode 132 https://www.cnblogs.com/grandyang/p/7404777.html leetcode 647 将字符串切割为回文的最小切割数:动态规划 p[i][ ...
分类:
其他好文 时间:
2020-05-04 19:19:24
阅读次数:
48
安装 使用pip安装numpy pip install numpy 数组的创建 np.array创建ndarray对象 np.arange创建ndarray对象 随机数创建ndarray对象 ndarray对象 常用的 (1) ndim (2) shape (3) size (3) itemsize ...
分类:
其他好文 时间:
2020-05-04 17:34:25
阅读次数:
46
public class ArrayMax { public static void main(String[] args) { int[] array = new int[10]; for(int i=0;i<array.length;i++) { array[i] = (int)(Math.ra ...
分类:
编程语言 时间:
2020-05-04 11:46:55
阅读次数:
98
题目: 解答: 思路就是先计算每个字符串中,26个字母每个出现的次数(fun函数的功能),然后就是二分查找找出答案。这里二分查找用的函数是标准库的 upper_bound。 1 class Solution { 2 public: 3 vector<int> numSmallerByFrequenc ...
分类:
其他好文 时间:
2020-05-03 23:08:27
阅读次数:
119
最近,我读了一篇有趣的文章,文中介绍了一些未充分使用的Python特性的。在文章中,作者提到,从Python 3.2开始,标准库附带了一个内置的装饰器functools.lru_cache。我发现这个装饰器很令人兴奋,有了它,我们有可能轻松地为许多应用程序加速。 你可能在想,这很好,但这个装饰器究竟 ...
分类:
编程语言 时间:
2020-05-03 21:50:32
阅读次数:
113
Character包装类 Math类 Random类 此类用于产生随机数,如果用相同的种子创建两个 Random 实例,则对每个实例进行相同的方法调用序列,它们将生成并返回相同的数字序列。 构造方法 System类 System 类包含一些有用的类字段和方法。它不能被实例化。 (构造方法私有化) B ...
分类:
编程语言 时间:
2020-05-03 20:33:45
阅读次数:
71
1. scikit learn PCA类介绍 在scikit learn中,与PCA相关的类都在sklearn.decomposition包中。最常用的PCA类就是sklearn.decomposition.PCA,我们下面主要也会讲解基于这个类的使用的方法。 除了PCA类以外,最常用的PCA相关类 ...
分类:
其他好文 时间:
2020-05-03 20:29:40
阅读次数:
70