Commit 5930c30c by BellCodeEditor

save project

parent 02234c26
Showing with 6 additions and 2 deletions
import random import random
key = "abcdefgh使用python实现简单的位移替换加密,制作密码机关真是太好玩了哈哈哈!" key = "abcdefgh使用python实现简单的位移替换加密,制作密码机关真是太好玩了哈哈哈!"
message = "诺依,周末一起来看漫画吧!" message = "诺依,周末一起来看漫画吧!"
noise = "我是唐梧桐他弟小金龙王唐舞麟"
keymessage = " " keymessage = " "
for i in message: for i in message:
str1 = i str1 = i
...@@ -8,4 +9,7 @@ for i in message: ...@@ -8,4 +9,7 @@ for i in message:
str3 = random.choice(key) str3 = random.choice(key)
text = str1 + str2 + str3 text = str1 + str2 + str3
keymessage = keymessage + text keymessage = keymessage + text
print(keymessage) list_message = list(keymessage)
\ No newline at end of file list_message.insert(5,noise)
a_message = "".join(list_message)
print(a_message)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment