Commit 5f72eb2d by BellCodeEditor

save project

parent 62e618ed
Showing with 18 additions and 5 deletions
for i in range(6): import random
for l in range(6): key = '基地啊hi回到家欧杰佛评价哦i欸啊别打我' #私钥
if i>=l: message='诺伊今天出去玩' #密码
print("@",end=' ') key_message='' #新的密钥
\ No newline at end of file noise = '!@#¥%……&*()' #干扰字符
for i in message:
str1=i
str2=random.choice(key)
str3 = random.choice(key)
text = str1+str2+str3
key_message = key_message+text
list1 = list(key_message)
index = random.randint(0,len(key_message))
list1.insert(index,noise)
# insert方法:在列表指定位置追加元素第一个参数是追加的位置,第二个参数是追加的元素
no_message = "".join(list1)
print(no_message)
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