【python密码学编程】5.反转加密法

 #Reverse Cipher
message = 'there can keep a secret,if two of them are dead.'
translated = ''
i = len(message)-1
while i >= 0:
translated = translated + message[i]
i = i-1
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

仅允许非商业转载,转载请注明出处

上一篇:简单几步,教你学会PHP,新手必看!


下一篇:QQ聊天框变成方框口口口口的解决办法