首页 软件开发 代码片段 python ( Page 42 )

python 1073

#Python
wxpython开发的简单的gui计算器

# wxCalc1 a simple GUI calculator using wxPython # created with the Boa Constructor which …

2015-06-18 914

#Python
Python删除指定目录下的过期文件

import os import sys import time class DeleteLog: def __init__(self,fileName,days): self.f…

2015-06-18 612

#Python
python递归删除指定目录

''' @author: Administrator ''' #coding=utf-8 import os import shutil dir = "G://tmp//…

2015-06-18 256

#Python
python实现ssh批量登录并执行命令

局域网内有一百多台电脑,全部都是linux操作系统,所有电脑配置相同,系统完全相同(包括用户名和密码),ip地址是自动分配的。现在有个任务是在这 些电脑上执行某些命令,者说进行某些…

2015-06-18 357

#Python
Python建立SSH连接的方法

我需要实现一个Windows下远程连接到SSH服务器执行命令的功能,所以就在网上找资料。我的环境是:Windows7 64位,Python 2.7 32位。按照网上的说法,需要下载…

2015-06-18 569

#Python
python 操作 ssh

#coding:utf-8 """ ssh操作例子 实现了服务器日志下载 2012-08-24 yywolf """ i…

2015-06-18 223

#Python
python自动连接ssh的代码

#!/usr/bin/python #-*- coding:utf-8 -*- import sys, time, os try: import pexpect except Im…

2015-06-18 214

#Python
下载漫画小脚本

#!/usr/bin/env python # -*- coding:utf-8 -*- """ Copyright (c) 2015, The Sun Technology Th…

2015-06-18 596

#Python
python监控本机cpu的利用百分比情况

python监控本机cpu的利用百分比情况 import wmi import time c = wmi.WMI() while True: for cpu in c.Win32_…

2015-06-18 659

#Python
用Python实现各种排序算法

1.冒泡排序 比较相邻的元素大小,将小的前移,大的后移,就像水中的气泡一样,最小的元素经过几次移动,会最终浮到水面上。 def bubble(list): for i in ran…

2015-06-18 663

#Python
python zip和unzip数据

# zipping and unzipping a string using the zlib module # a very large string could be zipp…

2015-06-16 522

#Python
python显示生日是星期几

# find the day of the week of a given date # Python will trap impossible dates like (1900,…

2015-06-16 572
1 40 41 42 43 44 90