Commit 9cab6522 by BellCodeEditor

save project

parent 58fd56fa
Showing with 3 additions and 15 deletions
import random dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" print(dict_hero)
message = "诺依,周末一起去看动漫展吧!" \ No newline at end of file
noise = "!@#$%^&*"
new = ""
for i in message:
s1 = random.choice(key)
s2 = random.choice(key)
new = new + i + s1 + s2
new = list(new)
index = random(0,13).randint
new.insert(index,noise)
new = "",join(new)
print(new)
\ 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