自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Arthur的随笔

The More I Learn, The Less I Know, Tracking Mind Only With Code

  • 博客(6)
  • 资源 (5)
  • 收藏
  • 关注

原创 python challenge第4题

import urllib2, re charnum_dic = {'one':1, 'two':2} nothing=12345 #nothing=16044 #nothing=82682 #nothing=87890 for x in xrange(400): f = urllib2.urlopen('http://www.pythonchallenge.com/pc/def/li

2012-02-08 00:26:09 1087

原创 python challenge第3题

这道题目是 One small letter, surrounded by EXACTLY three big bodyguards on each of its sides. 直觉就是用正则来做 一开始使用得正则是 reg = re.compile('[A-Z]{3}([a-z])[A-Z]{3}')发现匹配出来得东西特别多, 又研究题目,觉得EXACTLY是不是指包括得字符得是一样得比如

2012-02-07 23:38:00 2999

原创 python源码查找子串

首先找到string.find定义的地方, 在Objects/stringobject.c: static PyObject * string_find(PyStringObject *self, PyObject *args) { Py_ssize_t result = string_find_internal(self, args, +1); if (result ==

2012-02-07 13:28:35 2260 3

转载 python string hash 函数

static long string_hash(PyStringObject *a) { register Py_ssize_t len; register unsigned char *p; register long x; if (a->ob_shash != -1) return a->ob_shash; len = Py_SIZE(

2012-02-03 15:09:19 11310 1

原创 打印出字母构成一样的词

primes = [2, 3, 5, 7, 11 ,13 ,17 ,19 ,23 ,29 ,31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101] sample = ['hat', 'top', 'pot', 'peer', 'pper', 'pire', 'ripe'] def printSameChar(word_

2012-02-03 12:39:51 819

原创 自然数序列,找出任意连续之和等于n的所有子序列

lst = [0,2,4,5,3,1,8,6,4,7,9,3,2] total_sum = 9 def sum_seq(lst): seq = [] ct = 0 for x in lst: seq.append(x) ct += x if ct == total_sum: print seq

2012-02-02 10:24:09 3700

hierarchical data

两种树形结构存储于关系数据库中设计的介绍

2011-12-16

download程序C#源码,支持断点续传

代码是用C#实现的。Downfile是一个用来下载的类,其中的work方法不支持断点续传,Continuework支持。writeLog是用来把错误和异常写到日志文件的一个类

2008-09-02

cximage类库

最近在学习用cximage类库,感觉还不错,可以提供一些基本的图像读取显示格式转换功能,大家可以试试。不过这方面的资料少,对里面提供的函数功能不太了解

2008-04-22

Hide and seek in a complex world

Hide and seek in a complex world.pdf

2008-03-11

处理基本图像的DIB类

包括Cdib.h与Cdib.cpp

2007-11-19

空空如也

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

TA关注的人

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