[解决方案] pythonchallenge level 5】的更多相关文章

http://www.pythonchallenge.com/pc/def/equality.html 根据页面提示:一个小写字母刚刚好被左右3个大写字母包围. 查看页面代码得到需要处理的字符. 将字符复制到文档/tmp/s.txt下 python: import re with open('/tmp/s.txt', 'r') as f: content=f.read() raw_letter=re.findall('[a-z]+[A-Z]{3}([a-z])[A-Z]{3}[a-z]+', c…
http://www.pythonchallenge.com/pc/def/ocr.html 根据页面提示查看网页源代码,在最后:<!--find rare characters in the mess below:--> <!--%%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+$&[(_@%+%$*^@$^!+]!&_#)_*}{}}!}_]$[%}@[{_@#_^{*@##&{#&{&)*%(]{{([*}@[…
查看页面代码,知道找zip www.pythonchallenge.com/pc/def/channel.zip,查看zip下的readme.txt知道从90052,跑一遍知道要收集zip的comment zf = zipfile.ZipFile("/tmp/channel.zip") number = '90052' length = len(zf.infolist()) ret = [] for i in length: text = zf.read(num+'.txt') num…
l5=requests.get("http://www.pythonchallenge.com/pc/def/banner.p") body = l5.text lists = pickle.loads(body) for line in lists: ret = '' for num in line: ret += num[0]*num[1] print ret 得channel…
http://www.pythonchallenge.com/pc/def/linkedlist.php 查看页面源代码或者点击图片 http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345 and the next nothing is 44827 本题将页面中的数字代替url中nothing的值 python: import reimport requestsburl='http://www.pythonchalle…
http://www.pythonchallenge.com/pc/def/map.html g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.…
http://www.pythonchallenge.com/pc/def/0.html 问题: 2^38 >>> 2**38 >>>274877906944L 输入http://www.pythonchallenge.com/pc/def/274877906944L.html :the L in unnecessary 所以答案:274877906944…
20155205 2016-2017-2 <Java程序设计>第8周学习总结 教材学习内容总结 第十四章 NIO使用频道来衔接数据节点,可以设定缓冲区容量,在缓冲区中对感兴趣的数据区块进行标记,提供clear().rewind().flip().compact()等高级操作. FileInputStream.FileOutputStream都有个getChannel()方法可以分别取得FileChannel实例. 可以通过Channels上其它newXXX()静态方法,取得InputStrea…
#-*- coding:utf-8 -*- #代码版本均为python 3.5.1 #Level 7 import bz2 un=b'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084' pw=b'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]…
#-*- coding:utf-8 -*- #代码版本均为python 3.5.1 #Level 7 from PIL import Image x_begin, x_end = 0, 609 y_begin, y_end = 43, 53 image = Image.open("oxygen.png") data = [chr(image.getpixel((i, 43))[0]) for i in range(0, 609, 7)] #im.getpixel((x, y)) 得到某…