Commit 9fa65044 by BellCodeEditor

save project

parent b06eff1d
Showing with 6 additions and 3 deletions
import random
key="idewr8743 qc n49832q,0ce328jcd9mewcqsowqp而沃尔沃牛尾u吃呢"
message = "诺依,周末一起去看动漫展吧!"
no="jswnucdwnwdijc^%@^*&@#(&iumewc)"
text = ""
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = text + str1 + str2 + str3
print(texe)
\ No newline at end of file
text = text + str1 + str2 + str3
text=list(text)
text.insert(4,no)
text="".join(text)
print(text)
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