CHALLENGE

没事玩了玩Python Challenge, 不知道能到达几个Level. 除了需要编程技巧, 还挺考验智商的, 一块来试试吧.

Level 0 – key: 274877906944
>>> 2**28
Level 1 – key: ocr

import string

hints = '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.'

sour = 'abcdefghijklmnopqrstuvwxyz'
dest = 'cdefghijklmnopqrstuvwxyzab'
mapTable = string.maketrans(sour, dest)

print hints.translate(mapTable)
#hints: i hope you didnt translate it by hand. thats what computers are for. doing it in by hand is inefficient and that's why this text is so long. using string.maketrans() is recommended. now apply on the url.

Level 2 – key: equality

查看page source code, 然后find rare characters in the mess.


>>> ''.join([x for x in data if x.isalpha()])

  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Connecting to %s

加关注

Get every new post delivered to your Inbox.