Commit 23fc4949 by BellCodeEditor

auto save

parent 9dae1bba
Showing with 10 additions and 7 deletions
import turtle
screen=turtle.Sureen()
screen.bgcolor("red")
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心:")
len1=int(len)
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(100,0)
pen.pendown()
pen.write("就说些这吧",font=("方正舒体",20,"normal"))
pen.done()
pen.hideturtle()
pen1=turtle.Pen()
......@@ -16,12 +18,13 @@ pen1.penup()
pen1.goto(-150,100)
pen1.down()
pen1.pensize(30)
pen1.left(135)
pen1.circle(100,180)
pen1.forward(200)
pen1.circle(len1,180)
pen1.forward(2*len1)
pen1.left(90)
pen1.forward(200)
pen1.circle(100,180)
pen1.forward(2*len1)
pen1.circle(len1,180)
pen1.hideturtle()
turtle.done()
screen=turtle.Sureen()
......
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