Commit 34e5fc97 by BellCodeEditor

save project

parent 39829391
Showing with 7 additions and 4 deletions
import turtle import turtle
a=60 a=60
w=turtle.Pen() w=turtle.Pen()
q=turtle.Screen()
a=q.textinput("大小","你要多大的爱心")
e=int(a)
w.pencolor("red") w.pencolor("red")
w.fillcolor("red") w.fillcolor("red")
w.begin_fill() w.begin_fill()
w.left(45) w.left(45)
w.forward(2*a) w.forward(2*e)
w.circle(a,180) w.circle(e,180)
w.right(90) w.right(90)
w.circle(a,180) w.circle(e,180)
w.forward(2*a) w.forward(2*e)
w.end_fill() w.end_fill()
w.hideturtle() w.hideturtle()
turtle.done() 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