1. https://leetcode-cn.com/problems/container-with-most-water/ 思想:左右边界 i,j 向中间收敛 ,左右夹逼 方法一: 一维数组的坐标变换 i,j 枚举:left bar,right bar. (x-y)*height_diff cla ...
分类:
其他好文 时间:
2020-02-25 17:25:26
阅读次数:
67
漏洞影响了Discuz3.4以下的所有版本。该漏洞存在于upload/source/include/spacecp/spacecp_profile.php,文件中的submitcheck()函数。成功上传文件会跳转执行unlink这个函数。1.进入设置-个人资料,先在页面源代码找到formhash值,可以看到值为2599b5e52.开启一个插件HackbarPost数据:birthprovince
分类:
Web程序 时间:
2020-02-24 22:20:06
阅读次数:
122
最近,项目中遇到这样的问题。 要给这个tab的底部蓝线左右加上圆角。 然而,这个元素确实如上图所示,只是active的时候加了个underline的类,蓝线并没有单独的html。 若给这个span加上border-bottom-left-radius和border-bottom-right-radi ...
分类:
Web程序 时间:
2020-02-24 18:16:54
阅读次数:
104
当函数可以记住并访问所在的词法作用域时,就产生了闭包,即使函数是在当前词法作用域之外执行 function foo(){ var a = 2; function bar() { console.log(a); } return bar } var baz = foo(); baz(); // 2 — ...
分类:
Web程序 时间:
2020-02-24 09:14:06
阅读次数:
83
[toc] 前言 Matplotlib的可以把很多张图画到一个显示界面,在作对比分析的时候非常有用。 对应的有plt的subplot和figure的add_subplo的方法,参数可以是一个三位数字(例如111),也可以是一个数组(例如[1,1,1]),3个数字分别代表 1. 子图总行数 2. 子图 ...
分类:
其他好文 时间:
2020-02-24 00:39:08
阅读次数:
91
源码: 1 from math import fabs #导入数学模块 2 3 from time import perf_counter #导入时间模块 4 5 from numba import jit 6 7 @jit 8 9 10 def Bar(i): #动态文本条 11 12 N = p ...
分类:
微信 时间:
2020-02-23 16:25:32
阅读次数:
114
我们直觉上会认为 JavaScript 代码在执行时是由上到下一行一行执行的。但实际这并不完全正确 a = 2; var a; console.log(a); 这里可能会认为是 undefined,因为 var a 声明在 a = 2 之后。实际输出了 2。 console.log(a); var ...
分类:
Web程序 时间:
2020-02-23 10:05:23
阅读次数:
76
首先, 无论是解压还是安装, 都会在 C:\Users\Leon\.IntelliJIdea2019.3 有一个类似这种的文件夹. 在这个目录下有两个文件夹: config: 配置 system: 缓存 (提升 intelliJIdea 的性能) 所以, 当卸载时, 这两个目录也要删除. (要不会影 ...
分类:
其他好文 时间:
2020-02-22 19:48:08
阅读次数:
43
1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2020-02-22 17:20:15
阅读次数:
109