Commit b60355e6 by BellCodeEditor

auto save

parent 03fe5369
Showing with 4 additions and 4 deletions
...@@ -14,8 +14,9 @@ for i in message: ...@@ -14,8 +14,9 @@ for i in message:
str3 = random.choice(key) str3 = random.choice(key)
text = str1+str2+str3 text = str1+str2+str3
key_message = key_message + text key_message = key_message + text
#将转换后的列表存储在list_message变量里并且插入干扰项noise
#将插入后的list_message再转换回字符串保存在变量str_message里
list_message = list(key_message)
list_message.insert(5, noise)
result_message = "".join(list_message)
print(result_message) print(result_message)
\ 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