Open andrewleo opened 10 years ago
import string
def caesar(): #hint K->M, O->Q, E-G original ="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." t = string.maketrans('abcdefghijklmnopqrstuvwzyz', 'cdefghijklmnopqrstuvwzyzab') print s.translate(t)
if name == 'main': caesar()
Python Challenge,快乐编程!
What is the Python Challenge?
The Python Challenge is a set of riddles that require a little bit of Python programming to be solved. The solutions are entered by changing the address of the page (URL). You get used to the idea pretty fast after solving the first few levels.
What's the purpose of the Python Challenge?
I've written the challenge in hope that it will provide an entertaining way to explore the Python Programming Language. It is a way to demonstrate the great power of Python's batteries.
每过一关可以查看前一关的答案,每一关的解决方案多的足够滚残你的鼠标!
E文+IQ+Python = 最强大脑,亲,看好你哦~