Commit 664e5f3a by BellCodeEditor

save project

parent 09b26d18
Showing with 6 additions and 5 deletions
...@@ -4,9 +4,8 @@ import random ...@@ -4,9 +4,8 @@ import random
key= "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key= "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
r="b.,augiobsgddd'" password="b.,augiobsgddd'"
t=list(r)
print(t)
i=0 i=0
for i in message: for i in message:
e1=i e1=i
...@@ -14,4 +13,6 @@ for i in message: ...@@ -14,4 +13,6 @@ for i in message:
e3=random.choice(key) e3=random.choice(key)
text=e1+e2+e3 text=e1+e2+e3
print(text) print(text)
"".join() mess=list(message)
\ No newline at end of file mess.insert(5,password)
print("".join(mess))
\ 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