Commit 3293c1d1 by BellCodeEditor

save project

parent 45ff248f
Showing with 1 additions and 6 deletions
......@@ -9,10 +9,5 @@ for i in message:
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