Commit ce1e7f91 by BellCodeEditor

save project

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