Commit ec9cb167 by BellCodeEditor

auto save

parent da2a453b
Showing with 23 additions and 5 deletions
import random
#私钥
key="扣非后IE佛为南波湾买完房任务范围1234abc"
#干扰字符
a="abcwdwnq@313w1$14313144c"
#要加密的语句
message=input("请输入要加密的语句:")
s=""
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
s=s+text
list1=list(s)
l=len(message)
c=random.randint(0,l)
list1.insert(c,a)
b="".join(list1)
print(b)
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!" print(1,2,3,4,sep="#",end=" ")
\ No newline at end of file
# 请对message进行遍历,取出所有元素
for i in range(len(message)):
print(message[i])
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