最新文章列表

PythonChallenge Level 0~4

PythonChallenge Level 0:    http://www.pythonchallenge.com/pc/def/0.html           计算 2 的 38 次幂 将得到的结果替换URL中数字0 print 2**38             PythonChallenge Level 1:    http://www.pythonchalleng ...
JNstar 评论(0) 有488人浏览 2015-05-27 15:33

pythonchallenge 20 code (python2.7)

absolutely lost... reference:http://past.makto.me/post/2011-11-26/18573723 >>> import urllib >>> web=urllib.urlopen('http://butter:fly@www.pythonchallenge.com/pc/hex/unreal.jpg') > ...
yy_gy 评论(0) 有840人浏览 2013-06-09 04:34

Pythonchallenge Level 19 (python 2.7)

After looking into the source code some key words attracted me: 'encoding:base64' 'indian.wav' another interesting hint is about the pic: the colours for the the mainland and ocean are exchanged Note: ...
yy_gy 评论(0) 有870人浏览 2013-06-09 04:32

Pythonchallenge Level 18 (python 2.7)

the difference between these two images are brightness level, hence go to the 'brightness.html' download 'delta.gz' and unzip the file look into the dataset, the regular stuff would come out... >&g ...
yy_gy 评论(0) 有951人浏览 2013-06-08 01:32

Pythonchallenge Level 17 (python 2.7)

I spent much more time on this problem. the information behind this pic: 1. the image from level4 2. lots of cookies ==> go into the corresponding cookies of level4 and you will find a hint: 'you+s ...
yy_gy 评论(0) 有1571人浏览 2013-06-08 01:32

Pythonchallenge Level 16 (python2.7)

This rule in my view is not so easy to figure out.... however, the code is generated depends on others' solution: >>> data=[] >>> image=Image.open('/home/****/Downloads/mozart.gif') ...
yy_gy 评论(0) 有369人浏览 2013-06-08 01:32

Pythonchallenge Level 15 (python2.7)

what kinds of information can you remember for a calendar? year?date?month?weekdays?leapyear?... try to find these from the image the code is: >>> import calendar >>> for year in rang ...
yy_gy 评论(0) 有477人浏览 2013-06-08 01:31

Pythonchallenge Level 13 (python2.7)

New stuff: xmlrpclib #get the connection: >>> from xmlrpclib import ServerProxy >>> s=ServerProxy('http://www.pythonchallenge.com/pc/phonebook.php') >>> s.system.listMethods( ...
yy_gy 评论(0) 有367人浏览 2013-06-07 01:28

Pythonchallenge Level 12 (python2.7)

For this issue, firstly, I downloaded the image, then I found its name was 'evil1.jpg' ps: it would be perfect if you hold kind of curiosity! lol... because you may want to try what will happen if you ...
yy_gy 评论(0) 有406人浏览 2013-06-07 01:28

Pythonchallenge Level 11 (python2.7)

My initial thought was to find certain rules in the image dataset, but failed. then I tried to divide the dataset into two groups based on the data position in the binary dataset, but the new image's s ...
yy_gy 评论(0) 有475人浏览 2013-06-07 01:28

Pythonchallenge Level 10 (python2.7)

At the beginning, I thought this would follow the rule: f(n+1)=f(n)+f(n-1) It turned out to be wrong... the damn look-and-say sequence.... the main problem is the implementation of this lovely algorith ...
yy_gy 评论(0) 有384人浏览 2013-06-07 01:27

Pythonchallenge Level 9 (python2.7)

The given hints are useful! >>> first=[146, 399, 163, 403, 170, 393, 169, 391, 166, 386, 170, 381, 170, 371, 170, 355, 169, 346, 167, 335, 170, 329, 170, 320, 170, 310, 171, 301, 173, 290, 17 ...
yy_gy 评论(0) 有614人浏览 2013-06-07 01:27

Pythonchallenge Level 8 (python2.7)

If you are familiarly with 'bz2' module, it would be really easy! >>> import bz2 >>> u=bz2.decompress('BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07& ...
yy_gy 评论(0) 有643人浏览 2013-06-06 00:49

Pythonchallenge Level 7 (python2.7)

In my opinion, this challenge needs more patience and observation! >>> import Image >>> image=Image.open('/homeDownloads/oxygen.png') >>> data=image.convert('L').getdata() ...
yy_gy 评论(0) 有686人浏览 2013-06-06 00:48

Pythonchallenge Level 6 (python2.7)

download the zip file from ..../channel.zip extract the channel.zip and read the read.txt my code: >>> import re >>> value=90052 >>> comments=[] >>> z=zipfile.ZipFi ...
yy_gy 评论(0) 有613人浏览 2013-06-06 00:44

Pythonchallenge Level 5 (python2.7)

import pickle f=open('banner.p') contents=pickle.load(f) for obj in contents: ...     string='' ...     for o in obj: ...         string=string+o[0]*o[1] ...     print string Answer: channel.html Re ...
yy_gy 评论(0) 有673人浏览 2013-06-06 00:42

写个小工具,抓网页的源代码

很简单的一个方法,以后不要每次粘贴一次了 #!/usr/bin/env python import sys,urllib def downloadPage(filename,url): wp = urllib.urlopen(url) fp = open(filename,'w') content = wp.read() fp.write( ...
hangdian_123 评论(0) 有1037人浏览 2012-05-03 00:04

pythonchallenge.com第三题

pythonchallenge.com第二题 #!/usr/bin/env python def countchar(filename,count): fp = open(filename,'r') listcount = [0]*256 tmp = fp.read(1) str = '' while tmp: lis ...
hangdian_123 评论(0) 有932人浏览 2012-05-02 17:15

自己写的关于www.pythonchallenge.com/的代码答案

前两天发现了个练习python的地方 ,www.pythonchallenge.com/ 挺有意思的,每天写点python,顺便把答案贴出来   自己写的关于www.pythonchallenge.com/的代码答案
hangdian_123 评论(0) 有860人浏览 2012-04-23 23:41

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics