码迷,mamicode.com
首页 >  
搜索关键字:tuples    ( 155个结果
Storm系列(十三)架构分析之Worker-维护ZMQ连接
Worker-维护ZMQ连接(mk-refresh-connections、refresh-storm-active、mk-transfer-local-fn 、defn mk-transfer、mk-transfer-tuples-handler )
分类:其他好文   时间:2015-10-10 12:09:05    阅读次数:369
Python基础学习笔记(七)常用元组内置函数
参考资料: 1. 《Python基础教程》 2. http://www.runoob.com/python/python-tuples.html 3. http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103f...
分类:编程语言   时间:2015-10-08 00:35:54    阅读次数:164
Tuple
Tuple An immutable data value that contains related elements. Tuples are used to group together related data, such as a person's name, their age, and ...
分类:其他好文   时间:2015-10-02 12:30:21    阅读次数:203
jQuery中的deferred实现机制
jquery中的源码: Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ ...
分类:Web程序   时间:2015-09-14 11:50:17    阅读次数:208
【python】strip()的用法
今天看到了http://www.pythondoc.com/pythontutorial27/datastructures.html#tut-tuples的5.1.4,里面有一段:?123>>>freshfruit=['banana','loganberry','passionfruit']>>>[...
分类:编程语言   时间:2015-08-30 21:15:46    阅读次数:191
python 排序归纳
student_tuples=[(‘john‘,‘A‘,15),(‘jane‘,‘B‘,12),(‘dave‘,‘B‘,10)] print"1:",sorted(student_tuples,key=itemgetter(2))##按第三个元素排序 print"2:",sorted(student_tuples,key=itemgetter(1,2))##先按第二个元素,如相同,再按第三个元素排序 print"3:",sorted(student_t..
分类:编程语言   时间:2015-08-30 17:51:11    阅读次数:180
Python zip函数
This function returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The returned ...
分类:编程语言   时间:2015-08-29 21:30:43    阅读次数:147
(回溯法)数组中和为S的N个数
Given a list of numbers, find the number of tuples of size N that add to S.for example in the list (10,5,-1,3,4,-6), the tuple of size 4 (-1,3,4,-6) a...
分类:编程语言   时间:2015-08-01 17:13:09    阅读次数:229
Python中zip()函数用法
定义:zip([iterable, …])zip()是Python的一个内建函数,它接受一系列可迭代的对象作为参数,将对象中对应的元素打包成一个个tuple(元组),然后返回由这些tuples组成的list(列表)。若传入参数的长度不等,则返回list的长度和参数中长度最短的对象相同。利用*号操作符...
分类:编程语言   时间:2015-07-19 14:51:19    阅读次数:150
Ducci Sequence
Ducci SequenceTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA Ducci sequence is a sequence ofn-tuples of integers...
分类:其他好文   时间:2015-07-18 10:44:21    阅读次数:113
155条   上一页 1 ... 10 11 12 13 14 ... 16 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!