from turtle import *speed(8)width(2)color('red')def draw_sanjiaoxing(): fd(80) rt(90) fd(80) goto(0,0)a=0 for i in range(12): seth(a) draw_sanjiaoxing() a=a+30ht()
from turtle import *speed(8)width(2)color('red')def draw_sanjiaoxing(l_1,l_2): fd(l_1) rt(90) fd(l_2) goto(0,0)a=0b=45l_1=80l_2=80for i in range(int(360/b)): seth(a) draw_sanjiaoxing(l_1,l_2) a=a+bht()