Commit b6a5a2c7 by BellCodeEditor

save project

parent beea0f21
Showing with 4 additions and 0 deletions
import random
message = "诺依,周末一起去看动漫展吧!"
key='1257890qwetuiopASJKLzxvmdfjjuygjvcdryuk'
m='看了看u精美礼品离开你回家了,'
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
l=''
for i in message:
......@@ -9,4 +10,7 @@ for i in message:
c=random.choice(key)
d=a+b+c
l=l+d
list(l)
l=l.inser(6,m)
l=join(l)
print(l)
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