街角_祝福

导航

2012年8月13日 #

pythonchallenge--10

摘要: a = '1'for i in xrange(30): pos = 0 tmp = '' str_len = len(a) while pos < str_len: count = 1 while pos+1<str_len and a[pos] ... 阅读全文

posted @ 2012-08-13 10:21 街角_祝福 阅读(137) 评论(0) 推荐(0) 编辑

pythonchallenge--9

摘要: 题目链接:http://www.pythonchallenge.com/pc/return/good.htmlimport Image,ImageDrawim = Image.new('RGB', (500,500))draw = ImageDraw.Draw(im)first=[146,399,1... 阅读全文

posted @ 2012-08-13 09:56 街角_祝福 阅读(126) 评论(0) 推荐(0) 编辑

pythonchallenge--8

摘要: 题目:http://www.pythonchallenge.com/pc/def/integrity.html点击蜜蜂发现可以分登录,而网页源码中恰好有两行,像是加密了的用户名和密码,又发现字符串的前缀是bz2的,所以用bz2解压试试,结果不小心就出来了。import bz2un = 'BZh91A... 阅读全文

posted @ 2012-08-13 09:39 街角_祝福 阅读(146) 评论(0) 推荐(0) 编辑

pythonchallenge--7

摘要: import Imageim = Image.open('oxygen.png')print ('image information:',im.format,im.size,im.mode)y_begin = 0while True: p = im.getpixel((0,y_begin)) i... 阅读全文

posted @ 2012-08-13 08:56 街角_祝福 阅读(147) 评论(0) 推荐(0) 编辑