今天学习到了并且应用到了java中的静态方法,并且了解到它的好处与缺点。 ● 生命周期(Lifecycle): 静态方法(Static Method)与静态成员变量一样,属于类本身,在类装载的时候被装载到内存(Memory),不自动进行销毁,会一直存在于内存中,直到JVM关闭。 非静态方法(Non- ...
分类:
编程语言 时间:
2020-05-15 09:18:48
阅读次数:
83
CF1349B Orac and Medians 题目描述 有$n$个数,$a_1,a_2,...,a_n$。 该题中$m$个数的中位数的定义是:将这$m$个数排序后,排在第$\lfloor \frac{m+1}{2}\rfloor$的数。 可以进行的操作是:选一个区间$[l,r]$,将$a_l,a ...
分类:
其他好文 时间:
2020-05-13 23:43:33
阅读次数:
123
Vuet.js是什么? Vuet.js是给Vue.js提供状态管理的一个工具,与vuex不同,它是一种崇尚规则定制的状态管理模式。事先将状态更新的规则写好,然后将规则注入到组件中,然后状态按照预订的规则来进行更新。github:Vuet.js 主动型和被动型规则 Vuet.js内置了life、man ...
分类:
Web程序 时间:
2020-05-13 17:00:09
阅读次数:
104
As the size of my blog "Chrome Development Tool tips used in my daily work" turns to be larger I create a separate post to record down this small tip. ...
分类:
编程语言 时间:
2020-05-11 15:23:04
阅读次数:
79
1218 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): 1219 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported pl ...
分类:
其他好文 时间:
2020-05-11 10:36:06
阅读次数:
260
在通过create-react-app创建好react项目之后,npm start一直报错,如下: There might be a problem with the project dependency tree. It is likely not a bug in Create React Ap ...
分类:
移动开发 时间:
2020-05-08 18:19:55
阅读次数:
119
https://www.zhihu.com/question/21416727/answer/339012081 https://www.zhihu.com/question/21416727/answer/690289895 实战 https://www.runoob.com/servlet/se ...
分类:
其他好文 时间:
2020-05-06 21:51:56
阅读次数:
85
Heaven never seals off all the exits. 捨てる神あれば拾う神あり 天无绝人之路。 ...
分类:
其他好文 时间:
2020-05-06 12:26:46
阅读次数:
62
一、题目说明 题目739. Daily Temperatures,返回一列数,改天要等多少天才能升温。难度是Medium! 二、我的解答 这个题目,用dp解决非常方便: 性能如下: ...
分类:
其他好文 时间:
2020-05-03 12:17:03
阅读次数:
48
1. Why do I care? Building a summary or pivot table table is very common in daily data analysis. We can use pandas.pivot_table or pandas.dataframe.gro ...
分类:
编程语言 时间:
2020-05-02 16:40:39
阅读次数:
64