首页 > 编程语言 > 详细

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

时间:2017-06-22 13:09:04      阅读:377      评论:0      收藏:0      [点我收藏+]
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

 

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

原文:http://www.cnblogs.com/Archimedes/p/7064281.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!