javascript中,一个js中的函数,第一句var _this = this;为什么要这样做? ...
分类:
编程语言 时间:
2018-02-22 10:48:37
阅读次数:
167
poj 2229 Sumsets Time Limit: 2000MS Memory Limit: 200000K Total Submissions: 21281 Accepted: 8281 Description Farmer John commanded his cows to search ...
分类:
其他好文 时间:
2018-02-21 18:18:03
阅读次数:
164
折腾了一天,一直在用CMD学习Python写Hello World。偶然间发现可以用Pycharm。也算是给后面想学习的人提个醒,方便省事许多。 format()使用方法。 age = 20name = 'Swaroop'print('{0} was {1} years old when he wr ...
分类:
编程语言 时间:
2018-02-21 17:43:53
阅读次数:
234
Introduction to Optimizer Statistics
分类:
其他好文 时间:
2018-02-21 10:44:17
阅读次数:
145
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has ...
分类:
其他好文 时间:
2018-02-20 22:03:24
阅读次数:
251
一:用双层for循环+push (双层循环,外层循环元素,内层循环时比较值;如果有相同的值则跳过,不相同则push进数组) Array.prototype.distinct = function() { var arr = this, result = [], i, j, len = arr.len ...
分类:
编程语言 时间:
2018-02-20 21:39:23
阅读次数:
186
A. Fafa and his Company 方法:暴力枚举leader的个数即可 code: 1 /* 2 by skydog 3 */ 4 #include <iostream> 5 #include <cstdio> 6 #include <vector> 7 #include <utili ...
分类:
其他好文 时间:
2018-02-20 10:36:09
阅读次数:
240
我们知道,使用面向对象编程(OOP)有一些弊端,当需要为多个不具有继承关系的对象引入同一个公共行为时,例如日志,安全检测等,我们只有在每个对象里引用公共行为,这样程序中就产生了大量的重复代码,程序就不便于维护了,所以就有了一个对面向对象编程的补充,即面向方面编程(AOP),AOP所关注的方向是横向的 ...
分类:
编程语言 时间:
2018-02-19 22:58:07
阅读次数:
271
本来想刷一道codewar上的算法题来着,结果看了半天没搞定(捂脸逃),水平太菜伤不起啊,心里默念三声:我还会回来的。然后还是乖乖的总结一下js创建对象的几种方式: no1. 对象字面量: 这种方法平时用的相对较多,举个栗子: ...
分类:
Web程序 时间:
2018-02-19 22:56:50
阅读次数:
207
Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number of times. But ...
分类:
其他好文 时间:
2018-02-19 21:48:42
阅读次数:
207