Commit ce1e7f91 by BellCodeEditor

save project

parent b98f1b32
Showing with 16 additions and 17 deletions
import random
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key="jviuegbeiuvha"
# 请对message进行遍历,取出所有元素 key2=""
q="125424354678679"
print(message[0]) for i in message:
print(message[1]) a1=i
print(message[2]) a2=random.choice(key)
print(message[3]) a3=random.choice(key)
print(message[4]) a4=a1+a2+a3
print(message[5]) key2=key2+a4
print(message[6]) list_message=list(key2)
print(message[7]) p=random.randint(0,len(key2))
print(message[8]) list_message.insert(p,q)
print(message[9]) c="".join(list_message)
print(message[10]) print(c)
print(message[11]) \ No newline at end of file
print(message[12])
print(message[13])
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