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

python 1073

#Python
模仿主站模板 首页 内页(想实现模板小偷)

#!/usr/local/bin/python #-*- coding: UTF-8 -*- #模仿主站模板 #QQ29295842 #######################…

2015-11-17 813

#Python
Python 实现半双工聊天器

#coding=utf-8 import socket #加载socket模块 from time import ctime #加载time模块ctime类 HOST = '' #…

2015-11-16 779

#Python
对比两个csv文件记录差异

# -*- coding:utf-8 -*- import csv import os class csvread(): def __init__(self,filename,ls…

2015-11-16 857

#Python
python集合C段IP筛选整理.py

""" python集合C段IP筛选整理.py 题目来源 http://www.bathome.net/thread-38037-1-2.html 依山居 7:51 2015/11…

2015-11-16 505

#Python
一个用于测试磁盘性能的 Python 代码

#!/usr/bin/python # -*- coding: utf-8 -*- filecount = 300000 filesize = 1024 import random…

2015-11-15 942

#Python
通信接口测试(json)

#!/usr/bin/env python # -*- coding:utf-8 -*- # File post.py import urllib import urllib2 i…

2015-11-15 643

#Python
文件夹常用操作

#_*_encoding:utf-8_*_ #-------------------------------------------------------------------…

2015-11-14 145

#Python
简单的rss阅读工具

#!usr/bin/env python # -*- coding:UTF-8 -*- import re from lxml import etree from bs4 impo…

2015-11-14 600

#Python
判断一个整数是否在一个二维数组中

# -*- coding:utf-8 -*- class Solution: # array 二维列表 def Find(self, array, target): if arra…

2015-11-13 311

#Python
统计多台linux的CPU使用率

#!/usr/bin/python # -*- coding:utf8 -*- # Email:chenwx716@163.com __author__ = 'chenwx' im…

2015-11-13 539

#Python
urllib2使用代理服务器

本代码演示了python的urllib2模块如何使用代理,以及需要登录验证的proxy # The proxy address and port: proxy_info = { '…

2015-11-12 981

#Python
python通过pil生成缩略图的简单代码

python通过pil生成缩略图的简单代码,这段代码会强行将图片大小修改成250×156 from PIL import Image img = Image.open('…

2015-11-12 954
1 5 6 7 8 9 90