Commit d794926b by BellCodeEditor

save project

parent 62c92e2f
Pipeline #12219 failed in 0 seconds
Showing with 6 additions and 2 deletions
......@@ -2,10 +2,14 @@ import random
Key = "abcdefgh"
message = "动漫展"
Key_message=""
noise = "port:@#$%^&"
for i in message:
str1 = i
str2 = random.choice(Key)
str3 = random.choice(Key)
text = str1+str2+str3
Key_message = Key_message + text
print(Key_message)
\ No newline at end of file
list_message = list(Key_message)
list_message.insert(5, noise)
result_message = "".join(list_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