Commit 701146d7 by BellCodeEditor

save project

parent 806e373c
Showing with 12 additions and 6 deletions
import random
key=请使用索引的知识,取出message所有元素(不用遍历的方式)
message = "诺依,周末一起去看动漫展吧!"
a = ""
for i in a:
d = i
b = random.choice(key)
c = random.choice(key)
e = d + b + c
a=a+e
print(a)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
a = len(message)
i = 0
while i < a:
b = message[i]
print(b)
i += 1
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