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

python 1073

#Python
apriori算法

""" Description : Simple Python implementation of the Apriori Algorithm Usage: $python apr…

2015-07-14 778

#Python
用Python dpkt 来解析 pcap ,,

import pcap, dpkt, dnet import sys class Readpcap(): def __init__(self): self.pc = pcap.pc…

2015-07-14 334

#Python
python事件驱动模型的代码

__author__ = 'Administrator' #/usr/env/bin python ''' this is document ''' class Event(obj…

2015-07-14 466

#Python
双鱼图

#!/usr/bin/env python3 """ turtle-example-suite: tdemo_yinyang.py Another drawing suitable…

2015-07-13 350

#Python
计算文件大小

#-*- coding:cp936 -*- import os, re """ 查看文件夹下的所有文件及文件夹 join为拼接函数 """ def Look_File(path):…

2015-07-13 391

#Python
python爬虫-爬取代理IP并通过多线程快速验证

mport urllib2 from BeautifulSoup import BeautifulSoup # get the proxy of = open('proxy.txt…

2015-07-12 132

#Python
利用百度、有道翻译API的在线翻译事例代码

#!/usr/bin/env python3 # -*- coding: utf-8 -*- import urllib.request import urllib.parse i…

2015-07-11 780

#Python
网页界面自动化测试

#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'hshao' from selenium.webdriver.co…

2015-07-10 152

#Python
求一个数的最大公约数

__author__ = 'JanGin_Chan' "'get the largest factor for the given non-prime number'" numbe…

2015-07-10 921

#Python
python封装的GET&POST请求

#coding=utf-8 import os import urllib import httplib import requests import json def get_p…

2015-07-10 502

#Python
python socket 聊天室

__author__ = '’ import socket import select HOST = "" PORT = 9008 BACKLOG = 100 BUFF = 102…

2015-07-10 788

#Python
Python分段下载文件

下载较大文件时分段下载会加速下载过程,几乎所有下载软件都有类似的特性。在python中如何实现分段下载文件呢? >>> import urllib2 >&g…

2015-07-09 898
1 32 33 34 35 36 90