Commit 16acb1d4 by BellCodeEditor

save project

parent ee0824ff
Showing with 10 additions and 26 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("幸运数♥","你的幸运数(0~150整数):")
len=int(len)
pen1=turtle.Pen()
pen1.penup()
pen1.goto(0,-100)
pen1.pencolor("red")
pen1.pensize(5)
pen1.hideturtle()
pen1.pendown()
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen=turtle.Pen()
pen.hideturtle()
pen.penup()
pen.goto(100,-100)
pen.pencolor("brown")
pen.write("诺依\n我收到你的来信了\n谢谢你!\n你真是貌美如花\n令我难以自拔!\n\n祝你\n学有所成\n万事如意!",font=("Time",20,"normal"))
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
pen= turtle.Pen()
size=screen.textinput("提示","你想要多大的魔法阵呀?")
size=int(size)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
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