自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 文章标题

Python图片进行下载,对图片尺寸进行筛选from cStringIO import StringIOfrom PIL import Imageimport urllib2import osurl = 'http://dcs.conac.cn/image/red.png'i = Image.open(StringIO(urllib2.urlopen(url).read()))print

2015-06-29 15:17:51 310

原创 欢迎使用CSDN-markdown编辑器

HTML代码提取文本信息 用python对HTML代码进行文本信息的提取,思路非常简单,就是获取HTML中的所有标签,并去除标签只留下文字。使用Beautifulsoup进行处理,去除标签以及js代码与style代码__author__ = 'Teer'from bs4 import BeautifulSoupfin = open('D:/1.html', 'r')html = fin.re

2015-06-29 15:05:59 323

转载 django修改app_label别名

For application authors¶If you’re creating a pluggable app called “Rock ’n’ roll”, here’s how you would provide a proper name for the admin:# rock_n_roll/apps.pyfrom django.apps import App

2015-02-22 22:39:37 5134

原创 wsgi+apache配置

WSGIScriptAlias /djTest /Library/WebServer/Documents/djTest/djTest/wsgi.py    Options Indexes FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all

2015-01-15 16:16:55 514

转载 Android的MD5加密,32位与16位

public class MD5 { public static String getMD5(String val) throws NoSuchAlgorithmException{ MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(val.getBytes());

2014-11-18 10:19:31 1262

转载 C++中将char数组转换为string

假设c字符串定义为char ch[]="hello world!";1.向构造函数传入c字符串创建string对象:string str(ch);2.使用拷贝构造函数创建string对象:string str = ch;3.对已有的string对象调用string类内部定义的赋值运算符:string str;str = ch; 前两种类似,但和第三种有较大区别,前两种是运用

2013-11-10 18:01:30 2746

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除