Commit fa5a7896 by BellCodeEditor

auto save

parent 150111ec
Showing with 11 additions and 0 deletions
import turtle
pen=turtle.Pen()
a=int(turtle.textinput("多边形","几个多边形"))
b=int(turtle.textinput("多边形","多边形几个边"))
for i in range(a):
for i in range(b):
pen.forward(120)
pen.left(360/b)
pen.left(360/a)
turtle.done()
\ No newline at end of file
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