只能源码安装源码下载: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
最近做性能测试,写了个python程序自动将URL里面的‘%2B’,‘20%’,‘3B'等转换成正常字符,方便查看。import os,sys;path = sys.path[0]os.chdir(path)encode_list = 'encode_list.txt'result = path +...
分类:
其他好文 时间:
2014-09-16 14:11:20
阅读次数:
280
语言:python浏览器:chrome工具:chrome控制台#!/usr/bin/python# coding: GBKimport urllib,urllib2,httplib,cookielibimport timeimport randomdef auto_login(url,name,pw...
分类:
编程语言 时间:
2014-09-16 13:59:30
阅读次数:
228
ceilometer的数据采集机制
ceilometer主要负责监控数据的采集,采集的项目包括虚拟机的性能数据,neutron-l3-router使用的网络带宽,glance&cinder&swift等租户使用信息,甚至是通过snmp采集物理机的信息,以及采集支持opendaylight的网络设备信息。
基本概念
ceilometer 主要有下面几个概念:
meter 是ceilo...
分类:
其他好文 时间:
2014-09-16 12:46:40
阅读次数:
190