Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 9, 2014 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lufeihaidao/10286467 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10286467 to your computer and use it in GitHub Desktop.
Q1 of python challenge in python
# 这是我的 python 解法,相当的 C 呢
astring='''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.'''
import re
bstring=''
for a in astring:
if re.match('\w',a):
a=chr((ord(a)-95)%26+97)
bstring=bstring+a
print (bstring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment