Python的交互式解释器没有自带像LinuxShell那样的命令自动补全功能,可以编写一个模块来实现这一功能,模块源代码来自老男孩Linux培训机构的Python讲师Alex:#pythonstartupfile
importsys
importreadline
#tabcompletion
readline.parseandbind(‘tab:complete‘)
分类:
编程语言 时间:
2014-09-16 19:08:11
阅读次数:
241
RFS 即Robot Framework +SeleniumRFS 的安装1.python https://www.python.org/RF框架是基于python的,所以要先安装有python环境,目前RF只支持python 2.x。安装后需要添加C:\Python27\;C:\Python27....
分类:
其他好文 时间:
2014-09-16 18:56:20
阅读次数:
252
利用hadoop streaming框架,帮助我们在map和reduce之间传递数据,通过stdin和stdout.http://wenku.baidu.com/link?url=R1vj6NWV5nv_aVI8P0G5SNzxOyaDsffGeOJrRT6iA9iYHry3w60hJ9CVAtS1...
分类:
编程语言 时间:
2014-09-16 18:54:50
阅读次数:
200
只能源码安装源码下载:http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3...
分类:
数据库 时间:
2014-09-16 18:51:10
阅读次数:
338
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le...
分类:
编程语言 时间:
2014-09-16 18:48:00
阅读次数:
242
Python程序包含多个模块文件,一个主体、顶层文件实现主要控制流程、调用组件和工具,其他模块文件则提供组件和工具,python自带了许多实用的模块称为标准链接库。模块是python中最高级别的程序组织单元,将代码和数据封装起来以便重用。每一个文件都是一个模块,并且可以通过“导入"来使用其他模块的变量(顶层定义的所有变量)。模块被导入时就生成了一个模块对象。...
分类:
编程语言 时间:
2014-09-16 17:24:10
阅读次数:
224
以下代码python2.7可用。#encoding=utf8
#author:walker
#date:2014-09-16
#function:获取指定access文件指定表的所哟字段名
importwin32com.client
if__name__==‘__main__‘:
accessPathFile=r‘D:\tmp\xxx.mdb‘
conn=win32com.client.Dispatch(r‘ADODB.Connection‘)
DSN=‘..
分类:
数据库 时间:
2014-09-16 16:12:41
阅读次数:
213
什么是yumyum是yellowdogupdatermodified的缩写。yellowdog是一个Linux的distribution,RH将这种升级技术利用到自己的distribution形成了现在的yum,感觉上yum和apt的原理类似,但是apt是编译代码,执行效率远高于使用python写成的yum。yum的理念是使用一个中心仓库(repository..
分类:
系统相关 时间:
2014-09-16 16:08:42
阅读次数:
386
打乱了,找线索,拼起来,再背。
import random
s = '''
However, even NRZI can have long series of zeros (or ones if transitioning on "zero"),
and thus clock recovery can be difficult unless some form of run length l...
分类:
其他好文 时间:
2014-09-16 14:19:20
阅读次数:
350
网上有个人写的python快速教程,非常好。比看书好多了。猛击下面的链接地址 http://www.douban.com/group/topic/30008503/ Python基础 Python基础01 Hello World! Python基础02 基本数据类型 Python基础03 序列 Py...
分类:
编程语言 时间:
2014-09-16 14:12:30
阅读次数:
312