题目:
一只小羊跳过了栅栏,两只小样跳过了栅栏,一坨小羊跳过了栅栏…
tn c0afsiwal kes,hwit1r g,npt ttessfu}ua u hmqik e {m, n huiouosarwCniibecesnren.
看了题目描述,应该是栅栏加密,直接上代码:
result = {0:'',1:'',2:'',3:'',4:'',5:'',6:'',7:'',8:'',9:'',10:'',11:'',12:'',13:'',14:'',15:'',16:'',17:''}; b = 17; s = "tn c0afsiwal kes,hwit1r g,npt ttessfu}ua u hmqik e {m, n huiouosarwCniibecesnren." for i in range(len(s)): a = i%b; result.update({a:result[a]+s[i]}); for i in range(b): print result[i];
最后输出结果:
the a
nwser
is w
ctf{C
01umn
ar},i
f u i
s a b
ig ne
w,u c
an he
lp us
thin
k mor
e que
stion
,tks.