Commit 994d0156 by BellCodeEditor

save project

parent f2c360b0
Showing with 3 additions and 2 deletions
......@@ -3,11 +3,12 @@
"""
import turtle
pen = turtle.Pen()
bian = input("您是要画几条边?")
pen.fillcolor("red")
pen.begin_fill()
for i in range(36):
for i in range(bian):
pen.forward(200)
pen.right(170)
pen.right(180-360/bian)
pen.hideturtle()
pen.end_fill()
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