Commit d0ca28e8 by BellCodeEditor

auto save

parent 027d3568
Showing with 17 additions and 0 deletions
import random
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
list=[]
for i in message:
list.append(i)
print(list)
print()
list3=[]
for i in range(len(list)):
list3.append(list[i])
list3.append(random.choice('诺依,周末一起去看动漫展吧!'))
str=''
print(str.join(list3))
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