Commit e708df95 by BellCodeEditor

save project

parent 058e8f06
Showing with 5 additions and 4 deletions
......@@ -9,11 +9,11 @@ for i in range(len(message)):
c=random.choice(key)
d=a+b+c
key_message=key_message+d
#转换成字符串
message2=list(key_message)
#赋值随机索引
inx=random.randint(0,len(message2))
#用变量插入干扰字符
message2.insert(inx,key2)
#用“"".join”方法打印
print("".join(message2))
\ 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