Commit a6ef9c6c by BellCodeEditor

save project

parent fa43664a
Showing with 4 additions and 2 deletions
import random import random
message = "诺依,周末一起去看动漫展吧!" message =input("输入,")
Key = "hefhef3797dhvb" Key = "hefhef3797dhvb"
Key_message = "" Key_message = ""
noise ="@$&$#klfgfg065898hj';lkgln)" noise ="@$&$#klfgfg065898hj';lkgln)"
...@@ -12,7 +12,9 @@ for i in message: ...@@ -12,7 +12,9 @@ for i in message:
print(Key_message) print(Key_message)
list_message = list(Key_message) list_message = list(Key_message)
list_message.insert(5,noise) index = random.randint(0,len(Key_message))
list_message.insert(index,noise)
result_message = "".join(list_message) result_message = "".join(list_message)
print (result_message) print (result_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