1 #Reverse Cipher 2 message = 'there can keep a secret,if two of them are dead.' 3 translated = '' 4 i = len(message)-1 5 while i >= 0: 6 translated = translated + message[i] 7 i = i-1 8 print translated
>>>C:\Python27\python.exe E:/Python/密码学编程/5.py
.daed era meht fo owt fi,terces a peek nac ereht
Process finished with exit code 0
仅允许非商业转载,转载请注明出处