Commit 49c374b6 by BellCodeEditor

save project

parent b6fd9119
Showing with 16 additions and 7 deletions
message = "诺依,周末一起去看动漫展吧!"
import random
# 请对message进行遍历,取出所有元素
i=0
while i<14:
print(message[i])
i=i+1
\ No newline at end of file
# 私钥
key = "abcdefgh使用python实现简单的位移替换加密,制作密码机关真是太好玩了哈哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
# 最终加密后的语句
key_message = ""
# 干扰字符
for i in message:
str1=i #诺 , 亿
str2=random.choice(key) #a d
str3=random.choice(key) #b f
text=str1+str2+str3 #诺ab 亿df
key_message+=text ab亿df
print(key_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