Commit 8a063069 by BellCodeEditor

save project

parent 10c7acbb
Showing with 5 additions and 0 deletions
import random import random
message = "洛伊,周末一起去看动画展" message = "洛伊,周末一起去看动画展"
key="国防部对面罕见病噶麻烦" key="国防部对面罕见病噶麻烦"
key2="%^$@#$%%^%@"
key_message = "" key_message = ""
for i in message: for i in message:
str1 = i str1 = i
...@@ -8,4 +9,7 @@ for i in message: ...@@ -8,4 +9,7 @@ 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_key = list(key_message)
list_key.insert(random.randint(0,len(list_key)-1),key2)
key_message = "".joio(list_key)
print(key_message) print(key_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