Commit 894681c3 by BellCodeEditor

save project

parent 02d362f7
Showing with 6 additions and 6 deletions
......@@ -4,21 +4,21 @@ pen.penup()
pen.goto(100,-100)
pen.write("你好\nXXX",font=("Times",20,"normal"))
pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("orange")
len=screen.textinput("提示","你想要多大的爱心呢?")
axs=int(len)
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("yellow")
pen1.begin_fill()
pen1.fillcolor("yellow")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(axs*2)
pen1.circle(axs,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(axs,180)
pen1.forward(axs*2)
pen1.end_fill()
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