六边形的绘制
1 import turtle 2 turtle.setup(500,450,200,200) 3 turtle.pensize(1) 4 turtle.seth(30) 5 for i in range(3): 6 turtle.fd(90) 7 turtle.right(120) 8 turtle.fd(30) 9 turtle.left(60) 10 turtle.fd(30) 11 turtle.right(120) 12 for i in range(3): 13 turtle.fd(90) 14 turtle.right(120)