Commit 6b26d6ff by BellCodeEditor

auto save

parent 016929c4
Showing with 7 additions and 4 deletions
......@@ -2,6 +2,8 @@ import turtle
a=turtle.Pen()
s=turtle.Pen()
screen=turtle.Screen()
d=screen.textinput("提示","请输入爱心的大小")
d=int(d)
a.pensize(3)
a.hideturtle()
s.hideturtle()
......@@ -12,9 +14,9 @@ s.goto(-65,130)
s.pendown()
s.write("七七",font=("Times",50,"normal"))
a.left(45)
a.forward(200)
a.circle(100,180)
a.forward(2*d)
a.circle(d,180)
a.right(90)
a.circle(100,180)
a.forward(200)
a.circle(d,180)
a.forward(2*d)
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