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)