Python123:turtle叠边形绘制

  • Post author:
  • Post category:python


在这里插入图片描述

import turtle
turtle.setup(650,350,200,200)
turtle.penup()
turtle.fd(-150)
turtle.right(90)
turtle.fd(150)
turtle.pendown()
turtle.pensize(5)
turtle.seth(0)
turtle.pencolor("black")
for i in range(9):
    turtle.fd(200)
    turtle.left(80)
turtle.done()



版权声明:本文为weixin_44652687原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。