pythonchallenge level2
level 2 : http://www.pythonchallenge.com/pc/def/ocr.html
--------------------------------------------------------------------------
Hint :
recognize the characters. maybe they are in the book,
but MAYBE they are in the page source.
--------------------------------------------------------------------------
웹페이지의 소스를 보니 특수문자들로 보이는 엄청 긴 문자열이 있고
<!--
find rare characters in the mess below:
-->
라는 주석을 볼 수 있다.
특수 문자들 사이에 있는 알파릭 문자들을 뽑아내 보았다.
1 2 3 4 5 6 7 8 | str = """%%$@_$^__#)^.....""" answer = ''i = 0 while 1 : if ord ( str [i]) > 96 and ord ( str [i]) < 123 : answer + = str [i] i + = 1 if i = = len ( str ): break print answer |
숨어있는 문자들은 equality
http://www.pythonchallenge.com/pc/def/equality.html
'War game > pythonchallenge' 카테고리의 다른 글
pythonchallenge level11 (0) | 2009.10.22 |
---|---|
pythonchallenge level10 (0) | 2009.10.20 |
pythonchallenge level9 (0) | 2009.10.16 |
pythonchallenge level8 (0) | 2009.10.16 |
pythonchallenge level7 (0) | 2009.10.16 |
python challenge level6 (0) | 2009.09.21 |
python challenge level5 (0) | 2009.08.27 |
pythonchallenge level4 (0) | 2009.08.20 |
pythonchallenge level3 (0) | 2009.08.19 |
pythonchallenge level1 (0) | 2009.08.17 |