码迷,mamicode.com
首页 >  
搜索关键字:one    ( 27922个结果
hive经常使用命令
hive经常使用命令 show tables; 列出hive里面全部数据表名 desc userProfile; 显示数据表userProfile的基本表字段及字段type desc extended trackinfo; 显示数据表trackinfo的具体信息,包含字段说明,数据表等 /usr/l ...
分类:其他好文   时间:2017-04-25 22:22:31    阅读次数:192
序列解包操作
解包操作是把序列(sequence)或映射(map)中的每个元素单独提取出来。 如果sequence为1,2,3,4,5 那么这样操后:one,two,*three = sequence 可以理解为:one==1,two==2,three==(3,4,5) 从上面这段代码可以看到args的参数类型是 ...
分类:其他好文   时间:2017-04-25 22:19:03    阅读次数:278
学习系列之扩展方法
一 扩展方法的定义 扩展方法能够向现有类型“添加”方法,而无需创建新的派生类型、重新编译或以其他方式修改原始类型。扩展方法是一种特殊的静态方法,调用扩展方法与调用在类型中实际定义的方法之间没有明显的差异 从字面上按照我们通常的理解,我们首先需要获得某个类的源代码,然后在这个类代码中增加成员方法,这样 ...
分类:其他好文   时间:2017-04-25 22:18:50    阅读次数:133
zoj 3963 Heap Partition(贪心)
A sequence S = {s1, s2, ..., sn} is called heapable if there exists a binary tree T with n nodes such that every node is labelled with exactly one ele ...
分类:其他好文   时间:2017-04-25 22:16:34    阅读次数:221
23种设计模式用英语怎样表达?
本人近期收集了一下23种设计模式的英文解释。分享例如以下。 Abstract Factory Provides one level of interface higher than the factory pattern. It is used to return one of several fa ...
分类:其他好文   时间:2017-04-25 22:16:11    阅读次数:174
Little Red Riding Hood
题目链接:http://acm.hzau.edu.cn/problem.php?cid=1029&pid=0 Description Once upon a time, there was a little girl. Her name was Little Red Riding Hood. One ...
分类:其他好文   时间:2017-04-25 21:22:43    阅读次数:210
slots与迭代器
1 class Foo: 2 __slots__='x' 3 4 5 f1=Foo() 6 f1.x=1 7 f1.y=2#报错 8 print(f1.__slots__) #f1不再有__dict__ 9 10 class Bar: 11 __slots__=['x','y'] 12 13 n=B ...
分类:其他好文   时间:2017-04-25 19:55:22    阅读次数:109
POJ 2718 Smallest Difference(贪心 or next_permutation暴力枚举)
Smallest Difference Description Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and ...
分类:其他好文   时间:2017-04-25 19:18:26    阅读次数:191
leetcode 链表题总结
按照frequency来排序,总共27题 1、2. Add Two Numbers https://leetcode.com/problems/add-two-numbers/#/description 两个链表相加,注意就是进位问题。 2、237. Delete Node in a Linked ...
分类:其他好文   时间:2017-04-25 18:36:12    阅读次数:214
菜鸟调错(三)——Jboss与jdk版本号不兼容导致WebService调用出错
环境: jdk1.6 Jboss 5.1.0.GA 问题描写叙述: EJB公布webserivce已经成功,而且可以成功訪问wsdl文件; 使用axis1自带的sample/client下的类DynamicInvoker測试,程序报错。 错误信息: client: Exception in thre ...
分类:Web程序   时间:2017-04-25 18:28:41    阅读次数:405
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!