Commit 019c49b3 by BellCodeEditor

save project

parent ef14a4bd
Showing with 7 additions and 5 deletions
......@@ -7,7 +7,8 @@ pen=turtle.Pen()
pen.write("你好 \n 诺依",font=("Times",30,"normal"))
pen.hideturtle()
ieg=60
ieg=screen.textinput("诺依","你想要多大的爱心?(1-100)")
wj=int(ieg)
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,100)
......@@ -15,9 +16,9 @@ pen1.pendown()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(2*ieg)
pen1.circle(ieg,180)
pen1.forward(2*wj)
pen1.circle(wj,180)
pen1.right(90)
pen1.circle(ieg,180)
pen1.forward(2*ieg)
pen1.circle(wj,180)
pen1.forward(2*wj)
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