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

python 1073

#Python
python多线程ping和arpping扫描工具

#/usr/bin/env python #--encoding=UTF-8-- #a simpl ping scaner import subprocess from threa…

2015-06-24 314

#Python
用PyQt实现透明桌面时钟小部件!

#coding=utf-8 ''' Created on 2012-4-6 @author: 大孟 ''' import sys from PyQt4 import QtGui, …

2015-06-24 945

#Python
Python 随机生成中文验证码

# -*- coding: utf-8 -*- import Image,ImageDraw,ImageFont import random import math, string…

2015-06-24 549

#Python
python实现简单的soap客户端

# $Id: testquote.py 2924 2006-11-19 22:24:22Z fredrik $ # delayed stock quote demo (www.xm…

2015-06-24 902

#Python
Python实现简单的web服务器

本代码运行后会减轻8088端口,用户访问:http://127.0.0.1:8088 或输出html代码:Hello World! #!/usr/bin/python import…

2015-06-24 472

#Python
删除指定格式的文件

#!/usr/bin/python """ 2015.07.02 Clean all the genrated files during compile. Edited by Gr…

2015-06-23 359

#Python
使用Python27抓取模板之家的CSS模板

#!/usr/bin/env python # -*- coding: utf-8 -*- # by ustcwq # 2015-03-15 import urllib,urlli…

2015-06-23 677

#Python
python获得linux物理内存大小

python获得linux物理内存大小: import re def get_physical_memory_in_kb(): meminfo = open('/proc/memi…

2015-06-23 400

#Python
urllib2下载文件

#!/usr/bin/python # coding=utf8 import os import urllib2 dir = "/home/saint/demo/" url = "…

2015-06-22 149

#Python
python获取mp3文件信息

将代码生成.py文件放在目录下运行,可以获取该目录的所有mp3文件的信息,需要使用ID3库 import os, sys from ID3 import * files = os.…

2015-06-20 375

#Python
python获取本机网卡的mac地址

python获取本机网卡的mac地址 import uuid print ':'.join(['{:02x}'.format((uuid.getnode() >> i)…

2015-06-20 639

#Python
教案生成器(.doc格式)

# -*- coding:utf-8 -*- import datetime # , calendar from copy import deepcopy from Beautif…

2015-06-20 766
1 37 38 39 40 41 90