Commit 0b12e44c by BellCodeEditor

save project

parent 0097d54c
Showing with 2 additions and 2 deletions
...@@ -5,9 +5,9 @@ import turtle ...@@ -5,9 +5,9 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
bian =int(input("您是要画几条边?")) bian =int(input("您是要画几条边?"))
pen.up() pen.up()
pen.setheading(0)
pen.forward(200)
pen.setheading(90) pen.setheading(90)
pen.forward(200)
pen.setheading(0)
pen.down() pen.down()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
......
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