Commit 7014e99a by BellCodeEditor

save project

parent e6305d1f
Showing with 4 additions and 3 deletions
import random import random
cuvs =
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key = aresdfhhgdhjdfsfshk key = "aresdfhhgdhjdfsfshk"
str = random.choice(key) str = random.choice(key)
key_message = ""
for i in message: for i in message:
# 请对message进行遍历,取出所有元素 # 请对message进行遍历,取出所有元素
str = i str = i
...@@ -10,5 +10,5 @@ for i in message: ...@@ -10,5 +10,5 @@ for i in message:
str2 = random.choice(key) str2 = random.choice(key)
str3 = random.choice(key) str3 = random.choice(key)
cuvs = str + str1 + str2 + str3 cuvs = str + str1 + str2 + str3
key_message = cuvs key_message = key_message + cuvs
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