分组计算: Group By : split – apply – combine split: 很具某些条件对数据进行分组 apply:对每一个group独立的应用函数 combine:将结果数据组合到某种数据结构中 计算: 1.求平均 .mean() 2.单个求平均 3.求和 4.求中位数 分组: ...
分类:
编程语言 时间:
2017-01-14 18:30:30
阅读次数:
451
时间限制:10000ms单点时限:1000ms内存限制:256MB 描述 We say a string is beautiful if it has the equal amount of 3 or more continuous letters (in increasing order.)Her ...
分类:
其他好文 时间:
2017-01-12 19:56:49
阅读次数:
227
作者: daodaoliang 版本: V 0.0.1 日期: 2016年12月29日 0x00 OpenSSH 简介 OpenSSH是采用SSH协议实现的重要的远程连接工具,它对所有的数据进行加密以防止被中途窃听,OpenSSH提供了大量的安全通道的组件,比如: 0x01 方案一 上面的所有信息可 ...
分类:
其他好文 时间:
2017-01-11 08:17:08
阅读次数:
10371
1.本节内容 门面模式的意图介绍 门面模式带来的好处 门面模式的应用场景 实现模式的3中方式:POJO、无状态与有状态回话Bean门面 有状态与无状态回话Bean门面的重要差别 关于门面模式使用的警告以及潜在陷阱 2.门面模式简介 GoF一书中是这样描述门面模式的:“为子系统中的一组接口提供一个统一 ...
分类:
编程语言 时间:
2017-01-07 16:14:26
阅读次数:
372
目标: 1.使用序列化cPickle 2.账户中钱要大于花费的钱,否则提示请存钱 2.编写函数,实现存钱,花钱,查询及退出功能 1.序列化 pickle是python实现序列化的模块,次模块存在使用C语言编写模块,用法相同,但执行效率更高,所以优先使用C模块编写的序列化模块cPickle。 2.编写 ...
分类:
编程语言 时间:
2017-01-06 22:17:38
阅读次数:
566
//名字去重 Map map=new HashMap(); for(int i=0;i entry : map.entrySet()) { JSONObject jo2 =new JSONObject(); jo2.put("serviceType", entry.getKey()); jo2.pu... ...
分类:
编程语言 时间:
2017-01-06 13:49:12
阅读次数:
214
一个程序,多个线程同时操作一个变量,给这个变量+1()。功能很简单,可是怎么样去实现呢?这其中涉及到了哪些问题? 最基础想法 见代码: 1 public class Test extends Thread { 2 public static int amount = 0; 3 4 public vo ...
分类:
编程语言 时间:
2017-01-01 11:44:30
阅读次数:
282
The particular manufactured fine mesh higher almost addresses the complete boot. Here is the sort of higher create in which blissfully permits the par ...
分类:
其他好文 时间:
2016-12-31 11:39:52
阅读次数:
142
The Euler function Problem Description The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numb ...
分类:
其他好文 时间:
2016-12-29 19:29:30
阅读次数:
181
public static void abc(List list,String... sortName) throws Exception{ Map<String,List<Object>> tMap = new HashMap<String,List<Object>>(); for(Object ...
分类:
编程语言 时间:
2016-12-28 02:12:55
阅读次数:
282