Commit 96f579fe by BellCodeEditor

save project

parent 9c5b7dd1
Showing with 10 additions and 6 deletions
import radom
message = "诺依,周末一起去看动漫展吧!"
i=0
a=0
key="aewsadQDAW哇哇哇哇哇wadfw那时刚好你是猪xadwdaw"
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
while i < len(message):
a=message[i]
print(a)
i+=1
\ No newline at end of file
for i in message:
t=i
t1=radom.choice(key)
t2=radom.choice(key)
a=t+t2+t3
print(a)
\ 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