Commit 7cc32234 by BellCodeEditor

auto save

parent 146a0d80
Showing with 15 additions and 0 deletions
import turtle
py=int(turtle.textinput("qwer","多边形要几条边"))
yp=int(turtle.textinput("qwer","你要画几个多边形"))
pen=turtle.Pen()
for i in range(yp):
for i in range(py):
pen.forward(119)
pen.left(360/py)
pen.left(360/yp)
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