```python
复制
def decrypt(ciphertext): mapping = { '1': 'a', '2': 'b', '3': 'c', '': 'd', '5': 'e', '6': 'f', '': 'g', '8': 'h', '9': 'i', '10*': 'j', '11*': 'k', '12*': 'l', '13* 'm', '14*': 'n', '15*': 'o', '16*': '', '17*': 'q', '': 'r', '19': 's', '20*': 't', '21*': 'u', '22*': 'v', '23*': 'w', '24*': 'x', '25*': 'y', '26*': 'z' }
result = '' i =0 while i < len(ciphertext): if i 2 < len(ciphertext) and ciphertext[i:i 3] in mapping:
复制
result = mapping[ciphertext[i:i 3]] i = 3 else: result = mapping[ciphertext[i]] i =1
return result
复制
ciphertext = '1023151818145191923120914723920819318916**914*7' print(decrypt(ciphertext))
输出为:
复制
knowledgeiswaitingthisiscripting ```