Commit 80d85e37 by BellCodeEditor

save project

parent b0c39c24
Showing with 8 additions and 2 deletions
...@@ -5,10 +5,17 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -5,10 +5,17 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
text=""
for i in message: for i in message:
str0=i str0=i
str1=random.choice(key) str1=random.choice(key)
str2=random.choice(key) str2=random.choice(key)
key_message=str0+str1+str2 key_message=str0+str1+str2
text=text+key_message text=text+key_message
print(text) #print(text)
\ No newline at end of file text=list(text)
print(text)
key2="@post;iuoi123"
text.insert(b,key2)
print(text)
b=random.randint(0,len(text))
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