Commit ef902159 by BellCodeEditor

save project

parent 51b6ce92
Showing with 26 additions and 5 deletions
message = "诺依,周末一起去看动漫展吧!" import random
import turtle
s=turtle.Screen()
message = s.textinpot()
Key_message=""
# 请对message进行遍历,取出所有元素 # 请对message进行遍历,取出所有元素
for i in range(14):
print(message[i])
for i in message: for i in message:
print(i) str1=i
\ No newline at end of file str2=random.choice(Key)
str3=random.choice(Key)
d=str1+str2+str3
Key_message=Key_message+d
print(Key_message)
message1=list(Key_message)
message1.insert(random.randint(0,len(message1)),"!@#$%^&*&^%$#@!")
message2="".join(message1)
print(message2)
pen=turtle.pen()
pen.while(message2)
turtle.done()
\ 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