Python Challenge Raiders (not to be continued)

Source: Internet
Author: User

0.http://www.pythonchallenge.com/pc/def/0.html

Very simple, beg 2^38

1 __author__ ' Lonnelan ' 2 3 Print 2**38
View Code

Get answers 274877906944

Enter the Address bar: http://www.pythonchallenge.com/pc/def/274877906944.html

1.http://www.pythonchallenge.com/pc/def/274877906944.html

is clearly a decryption, mapping is k->m, two characters difference

2.http://www.pythonchallenge.com/pc/def/ocr.html

Topic says let's look at the source code, open the source code

<!-- find rare characters in the mess below:  - <!-- .................  -

There is a sentence in which a few characters are found in the large amount of data below. It's all right, straight yards.

Copy paste is not coder style, first use the regular to find two <!----> things, here to pay attention to the Re.findall flag parameters, Re.s said can find more lines, I was here tangled for a long time, the last to check the API

Then use the regular to find the letters from the second large pile of things.

1 __author__='Lonnelan'2 3 ImportUrllib,re,sys4 5URL ="http://www.pythonchallenge.com/pc/def/ocr.html"6web =urllib.urlopen (URL)7Source =Web.read ()8 web.close ()9 Tentemp = Re.findall (r"<!--(. +?) -", source, Re. S) [1] Oneres = Re.findall (r"[A-za-z]", temp) A  forIinchRes: -Sys.stdout.write (i)
View Code

Get answers equality Enter the Address bar: http://www.pythonchallenge.com/pc/def/equality.html

Python Challenge Raiders (not to be continued)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.