叠加等边三角形的绘制

   

import turtle
turtle.setup(500,500)
for i in range(3):
turtle.fd(100)
turtle.right(120)
turtle.left(60)
turtle.fd(100)
for i in range(2):
turtle.right(120)
turtle.fd(200)
turtle.right(120)
turtle.fd(100)

猜你喜欢

转载自www.cnblogs.com/dongchidachi/p/12500956.html