码迷,mamicode.com
首页 >  
搜索关键字:python tab    ( 153688个结果)
通过一个具体的实例来学习hive
----资源来自于官网教程 Simple Example Use Cases MovieLens User Ratings First, create a table with tab-delimited text file format: CREATE TABLE u_data ( userid INT, movieid INT, rati...
分类:其他好文   时间:2014-06-11 06:32:36    阅读次数:407
一入python深似海--while-loop与for-loop
while loops 定义与实例 i = 0 numbers = [] while i < 6: print "At the top i is %d" % i numbers.append(i) i = i + 1 print "Numbers now: ", numbers print "At the bottom i is %d" % ...
分类:编程语言   时间:2014-06-11 00:59:17    阅读次数:410
一入python深似海--list
几个实例展示python中数据结构list的魅力! list变量申明 the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] 访问list元素 array= [1,2,5,3,6,8...
分类:编程语言   时间:2014-06-11 00:16:28    阅读次数:285
如何用python从文中获取文件名再用正则表达式批量修改文件名
新手利用python正则表达式从文件中取出文件名称给文件命名,再修改文件名以利于检索...
分类:编程语言   时间:2014-06-11 00:15:09    阅读次数:469
Android 自定义ActionBar.Tab对象的表现
最近想修改ActionBar.Tab对象的文本字体和颜色 发现该对象提供的借口非常有限 而网上搜索到的结果大多比较早 使用的也不是google提供的例子中的ActionBar 于是自己研究了一天 找到了使用借口setCustomView来自定义ActionBar.Tab对象 先通过ActionBar.getTabAt(int) 获得一个ActionBar.Tab对象 然后...
分类:移动开发   时间:2014-06-10 14:54:22    阅读次数:216
[Erlang]如何在Erlang中将对list进行json编码?
Json编码,在python里就是一句话: json.dumps(user_data) 但是Erlang没有自带的Json模块,只能自己造轮子: 先下载mochijson2: https://github.com/mochi/mochiweb/blob/master/src/mochijson2.erl 用erlc编译 然后,上代码: get_json_data() -> ...
分类:Web程序   时间:2014-06-10 06:46:21    阅读次数:309
MongoDB -- system.js
system.js MongoDB存储javascript函数的地方 与python配合用...
分类:数据库   时间:2014-06-10 06:45:42    阅读次数:260
python下用mysqldb连接使用数据库
新手听课笔记 python中用mysqldb模块操作mysql数据库的基本应用...
分类:数据库   时间:2014-06-10 06:32:57    阅读次数:202
projecteuler---->problem=24----Lexicographic permutations
问题描述: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabeti...
分类:其他好文   时间:2014-06-10 06:13:21    阅读次数:299
projecteuler---->problem=25----1000-digit Fibonacci number
问题描述: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn1 + Fn2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 ...
分类:其他好文   时间:2014-06-10 06:10:06    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!