''' pg_draw_circle_save101.py draw a blue solid circle on a white background save the draw…
import sys, urllib2, urllib zipcode = "S2S 1R8" url = 'http://www.wunderground.c…
''' tk_image_view_url_io.py display an image from a URL using Tkinter, PIL and data_stream…
import ftplib ftp = ftblib.FTP("ftp.yourServer.com") ftp.login("username&qu…
下面的python代码用于监控本机的8080端口,当用于通过http请求,服务器返回固定的html代码 import SocketServer class MyRequestHan…
import socket import fcntl import struct def get_ip_address(ifname): """ &g…
#-*- coding:utf-8 -*- from PIL import Image,ImageFont,ImageDraw text = u'欢迎访问open-open.com…
import urllib2 from settings import COOKIES opener = urllib2.build_opener() cookies = &quo…
from PIL import Image, ImageFilter, ImageDraw, ImageFont, ImageEnhance, ImageFilter image1…
from math import * #判断n是否为素数 def isprime(n): if n <= 1: return 0 m = int(sqrt(n))+1 for…
people = { 'Alice' : { 'phone' : '2341', 'addr' : 'Foo drive 23' }, 'Beth' : { 'phone' : '…
#!/usr/bin/env python # -*- coding:utf-8 -*- import os,re def main(): fileList=os.listdir(…
统计一个目录下的子目录的Size(清理Program Files文件夹神器)
python写的用WMI检测windows系统信息、硬盘信息、网卡信息