您需要对其进行暴力破解。
如果这些模式很简单,例如示例中的+2个字符代码(即+2个字符代码)
h i je f gl m nl m no p q1 2 33 4 55 6 77 8 99 : ;
您可以像这样轻松实施以检查已知单词
>>> text='jgnnq'>>> knowns=['hello', '13579']>>>>>> for i in range(-5,+5): #check -5 to +5 char pre range... rot=''.join(chr(ord(j)+i) for j in text)... for x in knowns:... if x in rot:... print rot...hello



