Commit 92555a73 by BellCodeEditor

save project

parent ec4facd8
Showing with 6 additions and 4 deletions
...@@ -21,14 +21,16 @@ pen_b.color("red") ...@@ -21,14 +21,16 @@ pen_b.color("red")
pen_b.speed(99) pen_b.speed(99)
pen_b.pensize(1) pen_b.pensize(1)
#画圆 #画圆
len=screen.textinput("爱心大小","爱心多大?")
len=int(len)
pen_b.fillcolor("red") pen_b.fillcolor("red")
pen_b.begin_fill() pen_b.begin_fill()
pen_b.left(45) pen_b.left(45)
pen_b.forward(100) pen_b.forward(2*len)
pen_b.circle(50,180) pen_b.circle(len,180)
pen_b.right(90) pen_b.right(90)
pen_b.circle(50,180) pen_b.circle(len,180)
pen_b.forward(100) pen_b.forward(2*len)
pen_b.end_fill() pen_b.end_fill()
#隐藏画笔 #隐藏画笔
pen_b.hideturtle() pen_b.hideturtle()
......
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