Commit 4bfd2323 by BellCodeEditor

save project

parent 1b277da6
Showing with 5 additions and 0 deletions
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
bian =int(input("您是要画几条边?")) bian =int(input("您是要画几条边?"))
pen.up()
pen.setheading(0)
pen.forward(200)
pen.setheading(90)
pen.down()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
for i in range(bian): for i in range(bian):
......
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