Commit cbfdd729 by BellCodeEditor

save project

parent 8df8ec38
Showing with 10 additions and 7 deletions
...@@ -8,12 +8,15 @@ pen.penup() ...@@ -8,12 +8,15 @@ pen.penup()
pen.goto(-100,100) pen.goto(-100,100)
pen.pencolor("red") pen.pencolor("red")
pen.pendown() pen.pendown()
len=screen.textinput("title","请输入爱心大小:") len=screen.textinput("title","请输入六边形大小:")
len=int(len) len=int(len)
pen.left(45) #pen.left(45)
pen.forward(2*len) #pen.forward(2*len)
pen.circle(50,180) #pen.circle(50,180)
pen.right(90) #pen.right(90)
pen.circle(len,180) #pen.circle(len,180)
pen.forward(2*len) #pen.forward(2*len)
for i in range(6):
pen.forward(len)
pen.right(60)
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