Created
April 9, 2014 16:14
-
-
Save lufeihaidao/10287796 to your computer and use it in GitHub Desktop.
Q1 of python challenge in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 推荐的做法 | |
import string | |
text='''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.''' | |
table = string.maketrans(string.ascii_lowercase, | |
string.ascii_lowercase[2:]+string.ascii_lowercase[:2]) | |
text.translate(table) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment