- 博客(7)
- 资源 (1)
- 收藏
- 关注
转载 Python Library: Pexpect
<br />Pexpect 非常适合用来做自动化管理,安装部署以及测试。Pexpect is a Python module for spawning child applications and controlling them automatically. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automa
2010-06-21 00:15:00
1185
转载 python 2.6 multiprocessing 的使用
<br />原文出处:http://www.rainsts.net/article.asp?id=1016<br /> <br />Python Standard Library 从 2.6 起增加了子进程级别的并行开发支持 —— multiprocessing。#!/usr/bin/env python# -*- coding:utf-8 -*-import os, timefrom multiprocessing import *def test(x): print c
2010-06-20 23:43:00
1246
转载 python冒泡法排序
#BubbleSort.py used python3.1 or python 2.xdef bubble(str): tmplist = list(str) count = len(tmplist) for i in range(0,count-1): for j in range(0,count-1): if tmplist[j] > tmplist[j+1]: tmplist[j],tmplist[j+1] = tm
2010-06-20 23:08:00
1435
转载 Python 操作文件及目录
<br />一、python 文件操作<br />1.import glob 目录操作<br />查看目录内容:<br />filelist=glob.glob(‘*.*’)<br />filelist=glob.glob(‘c:/*’)<br />查看指定类型的文件:<br />filelist=glob.glob(‘c:/*.sys’)<br />为了显示一个目录中的全部文件,可以使用如下所示的os.listdir函数:<br /> files = os.listdir(r’C:/hpl/script
2010-06-20 22:53:00
712
转载 FreeBSD下一块网卡绑定多个IP
假设网卡lnc0原IP地址为192.168.0.2,现在为它绑定另一个IP:CODE # ifconfig lnc0 192.168.0.3 netmask 255.255.255.255 alias解释:CODE 如果别名IP地址和网卡原IP地址在同一个子网上,就需要设置掩码为255.255.255.255如果位于不同的子网,就直接使用相应子网的正常网络掩码从TCP/IP的角度来看,这样做意味着
2007-03-15 18:04:00
635
转载 Aqua Data Studio 初用手记
由于工作上的需要,我会和多种数据库打交道,像mssql,mysql,oracle都需要的,以前比较麻烦,每种数据库都去装一个查询工具,而且这一些工具还不一定可以跨平台。今天我找到了一个可以统吃的工具,而且他的工能也很强大:Aqua Data Studio 有兴趣的话大家可以去官方网站下载一个。试用时间是30天。破解应该是可以找得到的http://download.aquafold.com/do
2007-02-08 18:40:00
4395
2
vim_runtime包
2011-04-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人