Commit d4fc6871 by BellCodeEditor

save project

parent bc6feda6
Showing with 7 additions and 5 deletions
...@@ -10,11 +10,12 @@ p1.forward(100) ...@@ -10,11 +10,12 @@ p1.forward(100)
p1.pendown() p1.pendown()
p1.pensize(5) p1.pensize(5)
p1.pencolor("blue") p1.pencolor("blue")
len=50 len=s.textinput("提示","你要画多大的爱心")
l=int(len)
p1.left(45) p1.left(45)
p1.forward(2*len) p1.forward(2*l)
p1.circle(len,180) p1.circle(l,180)
p1.right(90) p1.right(90)
p1.circle(len,180) p1.circle(l,180)
p1.forward(2*len) p1.forward(2*l)
turtle.done() 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