# wxCalc1 a simple GUI calculator using wxPython # created with the Boa Constructor which …
import os import sys import time class DeleteLog: def __init__(self,fileName,days): self.f…
''' @author: Administrator ''' #coding=utf-8 import os import shutil dir = "G://tmp//…
局域网内有一百多台电脑,全部都是linux操作系统,所有电脑配置相同,系统完全相同(包括用户名和密码),ip地址是自动分配的。现在有个任务是在这 些电脑上执行某些命令,者说进行某些…
我需要实现一个Windows下远程连接到SSH服务器执行命令的功能,所以就在网上找资料。我的环境是:Windows7 64位,Python 2.7 32位。按照网上的说法,需要下载…
#coding:utf-8 """ ssh操作例子 实现了服务器日志下载 2012-08-24 yywolf """ i…
#!/usr/bin/python #-*- coding:utf-8 -*- import sys, time, os try: import pexpect except Im…
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Copyright (c) 2015, The Sun Technology Th…
python监控本机cpu的利用百分比情况 import wmi import time c = wmi.WMI() while True: for cpu in c.Win32_…
1.冒泡排序 比较相邻的元素大小,将小的前移,大的后移,就像水中的气泡一样,最小的元素经过几次移动,会最终浮到水面上。 def bubble(list): for i in ran…
# zipping and unzipping a string using the zlib module # a very large string could be zipp…
# find the day of the week of a given date # Python will trap impossible dates like (1900,…