Commit 744fea46 by BellCodeEditor

auto save

parent 54a78f22
Showing with 20 additions and 6 deletions
message = "诺依,周末一起去看动漫展吧!" message = input("你要加密啥?")
g="%$&*(#@%)" key="@$E%^@RT&^&*()()不吃不喝就是比较合适"
l=list(message) import random
l.insert(2,g) noise="#$%$%#%$%" #不能直接往字符插入,转成列表再插
strt="".join(l)
print(strt) =""
for i in range(len(message)):
str1=message[i]
str2=random.choice(key)
str3=random.choice(key)
str4=str1+str2+str3
=+str4
message1=list()
b=random.randint(0,len(message1))
message1.insert(b,noise)
message2="".join(message1)
print(message2)
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