2六角形绘制
作者:互联网
import turtle turtle.setup(650,350,200,200) turtle.penup() turtle.pensize(1) turtle.pencolor("black") turtle.fd(100) turtle.seth(30) turtle.pendown() turtle.fd(80) turtle.seth(-90) turtle.fd(80) turtle.seth(150) turtle.fd(80) turtle.penup() turtle.seth(30) turtle.fd(80/3) turtle.seth(90) turtle.fd(80/3) turtle.pendown() turtle.seth(-30) turtle.fd(80) turtle.seth(-150) turtle.fd(80) turtle.seth(90) turtle.fd(80)
标签:turtle,30,seth,fd,90,80,绘制,六角形 来源: https://www.cnblogs.com/670ling/p/12494609.html