<= i < 30 or 60 <= i < 90:        a = a + 0.255        t.lt(3)        t.fd(a)    else:        a = a - 0.255        t.lt(3)        t.fd(a)t.pencolor("green")t.penup()t.goto(67, 120)t.pendown()a = 1for i in range(120):    if 0 <= i < 30 or 60 <= i < 90:        a = a + 0.2555        t.lt(3)        t.fd(a)    else:        a = a - 0.2555        t.lt(3)        t.fd(a)t.pencolor("deep sky blue")t.penup()t.goto(68, 120)t.pendown()a = 1for i in range(120):    if 0 <= i < 30 or 60 <= i < 90:        a = a + 0.25955        t.lt(3)        t.fd(a)    else:        a = a - 0.25955        t.lt(3)        t.fd(a)t.pencolor("pink")t.penup()t.goto(71, 120)t.pendown()a = 1for i in range(120):    if 0 <= i < 30 or 60 <= i < 90:        a = a + 0.26        t.lt(3)        t.fd(a)    else:        a = a - 0.26        t.lt(3)        t.fd(a)t.pencolor("purple")t.penup()t.goto(72, 120)t.pendown()a = 1for i in range(120):    if 0 <= i < 30 or 60 <= i < 90:        a = a + 0.269        t.lt(3)        t.fd(a)    else:        a = a - 0.269        t.lt(3)        t.fd(a)# 五环t.penup()t.goto(-55, -10)t.pendown()t.pencolor("blue")t.circle(10)t.penup()t.goto(-40, -10)t.pendown()t.pencolor("black")t.circle(10)t.penup()t.goto(-25, -10)t.pendown()t.pencolor("red")t.circle(10)t.penup()t.goto(-50, -20)t.pendown()t.pencolor("yellow")t.circle(10)t.penup()t.goto(-30, -20)t.pendown()t.pencolor("green")t.circle(10)# HappyBirthdayt.speed(2)t.delay(2)  def move(angle, length):    t.penup()    t.seth(angle)    t.fd(length)# preparet.penup()t.fd(-180)t.seth(90)  # 画笔方向# t.fd(50)t.pendown()t.pensize(10)t.pencolor("green")t.seth(0)t.hideturtle()t.speed(5)# 呀t.fd(100)# 生t.pencolor("green")t.circle(50, 90)t.circle(50, -30)t.seth(0)t.fd(100)t.fd(-50)t.left(90)t.fd(30)t.fd(-60)t.left(90)t.fd(50)t.fd(-100)t.fd(50)t.left(90)t.fd(50)t.right(90)t.fd(60)t.fd(-120)# 日t.penup()t.fd(-30)t.pendown()t.seth(90)t.fd(100)t.seth(0)t.fd(70)t.seth(-90)t.fd(50)t.seth(180)t.fd(70)t.seth(-90)t.fd(50)t.seth(0)t.fd(70)t.seth(90)t.fd(50)# 移动move(0, 30)# 快t.pensize(8)t.circle(30, 15)t.pendown()t.circle(30, 60)t.penup()t.seth(0)t.fd(13)t.seth(90)t.pendown()t.fd(40)t.fd(-50)t.penup()t.seth(0)t.fd(13)t.pendown()t.seth(-180)t.circle(20, -90)t.circle(20, 90)t.penup()t.fd(13)t.pendown()t.seth(-90)t.fd(60)move(0, 40)move(90, 80)t.pendown()t.seth(0)t.fd(30)t.seth(90)t.fd(30)t.fd(-30)t.seth(0)t.fd(20)t.seth(-90)t.fd(35)t.seth(0)t.fd(10)t.fd(-30)t.seth(90)t.fd(35)t.fd(-35)t.seth(0)t.fd(-25)move(-90, 50)move(180, 25)t.pendown()t.seth(0)t.penup()t.circle(50, 20)t.pendown()t.circle(50, 70)t.seth(-90)t.circle(50, 60)# 移动move(0, 50)move(90, 45)# 乐t.pensize(10)t.pendown()t.fd(40)t.seth(0)t.circle(50, 60)t.circle(50, -25)move(-90, 15)t.pendown()t.fd(30)t.seth(0)t.fd(-25)t.fd(65)t.fd(-40)t.seth(-90)t.fd(60)t.seth(135)t.fd(20)move(135, 10)t.pendown()t.seth(-135)t.fd(20)move(0, 70)t.pendown()t.seth(135)t.fd(20)# 署名t.penup()t.goto(450, -350)msg = '—cy'  # 此处可以修改你的署名for i in msg:    t.color('green')    t.write(i, True, align='left', font=('JetBrains Moon', 45, 'normal'))    time.sleep(0.3)t.clear()  # 清屏time.sleep(3)  # 让程序休眠3秒# 生日蛋糕t.speed(2)t.delay(0)  def drawx(a, i):    angle = m.radians(i)    return a * m.cos(angle)  def drawy(b, i):    angle = m.radians(i)    return b * m.sin(angle)  # 设置背景颜色,窗口位置以及大小t.bgcolor("#d3dae8")t.speed(10)t.pensize(1)t.penup()t.goto(150, 0)t.pendown()# 1t.pencolor("white")t.begin_fill()for i in range(360):    x = drawx(150, i)    y = drawy(60, i)    t.goto(x, y)t.fillcolor("#fef5f7")t.end_fill()# 2t.begin_fill()for i in range(180):    x = drawx(150, -i)    y = drawy(70, -i)    t.goto(x, y)for i in range(180, 360):    x = drawx(150, i)    y = drawy(60, i)    t.goto(x, y)t.fillcolor("#f2d7dd")t.end_fill()# 3t.pu()t.goto(120, 0)t.pd()t.begin_fill()for i in range(360):    x = drawx(120, i)    y = drawy(48, i)    t.goto(x, y)t.fillcolor("#cbd9f9")t.end_fill()# 4t.begin_fill()t.pencolor("#fee48c")for i in range(540):    x = drawx(120, i)    y = drawy(48, i) + 70    t.goto(x, y)t.goto(-120, 0)t.fillcolor("#cbd9f9")t.end_fill()# 5t.pu()t.goto(120, 70)t.pd()t.pencolor("#fff0f3")t.begin_fill()for i in range(360):    x = drawx(120, i)    y = drawy(48, i) + 70    t.goto(x, y)t.fillcolor("#fff0f3")t.end_fill()# 6t.pu()t.goto(110, 70)t.pd()t.pencolor("#fff9fb")t.begin_fill()for i in range(360):    x = drawx(110, i)    y = drawy(44, i) + 70    t.goto(x, y)t.fillcolor("#fff9fb")t.end_fill()# 7t.pu()t.goto(120, 0)t.pd()t.begin_fill()t.pencolor("#ffa79d")for i in range(180):    x = drawx(120, -i)    y = drawy(48, -i) + 10    t.goto(x, y)t.goto(-120, 0)for i in range(180, 360):    x = drawx(120, i)    y = drawy(48, i)    t.goto(x, y)t.fillcolor("#ffa79d")t.end_fill()# 8t.pu()t.goto(120, 70)t.pd()t.begin_fill()t.pensize(4)t.pencolor("#fff0f3")for i in range(1800):    x = drawx(120, 0.1 * i)    y = drawy(-18, i) + 10    t.goto(x, y)t.goto(-120, 70)t.pensize(1)for i in range(180, 360):    x = drawx(120, i)    y = drawy(48, i) + 70    t.goto(x, y)t.fillcolor("#fff0f3")t.end_fill()# 9t.pu()t.goto(80, 70)t.pd()t.begin_fill()t.pencolor("#6f3732")t.goto(80, 120)for i in range(180):    x = drawx(80, i)    y = drawy(32, i) + 120    t.goto(x, y)t.goto(-80, 70)for i in range(180, 360):    x = drawx(80, i)    y = drawy(32, i) + 70    t.goto(x, y)t.fillcolor("#6f3732")t.end_fill()# 10t.pu()t.goto(80, 120)t.pd()t.pencolor("#ffaaa0")t.begin_fill()for i in range(360):    x = drawx(80, i)    y = drawy(32, i) + 120    t.goto(x, y)t.fillcolor("#ffaaa0")t.end_fill()# 11t.pu()t.goto(70, 120)t.pd()t.pencolor("#ffc3be")t.begin_fill()for i in range(360):    x = drawx(70, i)    y = drawy(28, i) + 120    t.goto(x, y)t.fillcolor("#ffc3be")t.end_fill()# 12t.pu()t.goto(80, 120)t.pd()t.begin_fill()t.pensize(3)t.pencolor("#ffaaa0")for i in range(1800):    x = drawx(80, 0.1 * i)    y = drawy(-12, i) + 80    t.goto(x, y)t.goto(-80, 120)t.pensize(1)for i in range(180, 360):    x = drawx(80, i)    y = drawy(32, i) + 120    t.goto(x, y)t.fillcolor("#ffaaa0")t.end_fill()# 13t.pu()t.goto(64, 120)t.pd()t.pencolor("#b1c9e9")t.begin_fill()for i in range(360):    x = drawx(4, i) + 60    y = drawy(1, i) + 120    t.goto(x, y)t.goto(64, 170)for i in range(540):    x = drawx(4, i) + 60    y = drawy(1, i) + 170    t.goto(x, y)t.goto(56, 120)t.fillcolor("#b1c9e9")t.end_fill()t.pencolor("white")t.pensize(2)for i in range(1, 6):    t.goto(64, 120 + 10 * i)    t.pu()    t.goto(56, 120 + 10 * i)    t.pd()t.pu()t.goto(60, 170)t.pd()t.goto(60, 180)t.pensize(1)#t.pu()t.goto(64, 190)t.pd()t.pencolor("#f1add1")t.begin_fill()for i in range(360):    x = drawx(4, i) + 60    y = drawy(10, i) + 190    t.goto(x, y)t.fillcolor("#f1add1")t.end_fill()# 14t.pu()t.goto(-56, 120)t.pd()t.pencolor("#b1c9e9")t.begin_fill()for i in range(360):    x = drawx(4, i) - 60    y = drawy(1, i) + 120    t.goto(x, y)t.goto(-56, 170)for i in range(540):    x = drawx(4, i) - 60    y = drawy(1, i) + 170    t.goto(x, y)t.goto(-64, 120)t.fillcolor("#b1c9e9")t.end_fill()t.pencolor("white")t.pensize(2)for i in range(1, 6):    t.goto(-56, 120 + 10 * i)    t.pu()    t.goto(-64, 120 + 10 * i)    t.pd()t.pu()t.goto(-60, 170)t.pd()t.goto(-60, 180)t.pensize(1)#t.pu()t.goto(-56, 190)t.pd()t.pencolor("#f1add1")t.begin_fill()for i in range(360):    x = drawx(4, i) - 60    y = drawy(10, i) + 190    t.goto(x, y)t.fillcolor("#f1add1")t.end_fill()# 15t.pu()t.goto(0, 130)t.pd()t.pencolor("#b1c9e9")t.begin_fill()for i in range(360):    x = drawx(4, i)    y = drawy(1, i) + 130    t.goto(x, y)t.goto(4, 180)for i in range(540):    x = drawx(4, i)    y = drawy(1, i) + 180    t.goto(x, y)t.goto(-4, 130)t.fillcolor("#b1c9e9")t.end_fill()t.pencolor("white")t.pensize(2)for i in range(1, 6):    t.goto(4, 130 + 10 * i)    t.pu()    t.goto(-4, 130 + 10 * i)    t.pd()t.pu()t.goto(0, 180)t.pd()t.goto(0, 190)t.pensize(1)#t.pu()t.goto(4, 200)t.pd()t.pencolor("#f1add1")t.begin_fill()for i in range(360):    x = drawx(4, i)    y = drawy(10, i) + 200    t.goto(x, y)t.fillcolor("#f1add1")t.end_fill()# 16t.pu()t.goto(30, 110)t.pd()t.pencolor("#b1c9e9")t.begin_fill()for i in range(360):    x = drawx(4, i) + 30    y = drawy(1, i) + 110    t.goto(x, y)t.goto(34, 160)for i in range(540):    x = drawx(4, i) + 30    y = drawy(1, i) + 160    t.goto(x, y)t.goto(26, 110)t.fillcolor("#b1c9e9")t.end_fill()t.pencolor("white")t.pensize(2)for i in range(1, 6):    t.goto(34, 110 + 10 * i)    t.pu()    t.goto(26, 110 + 10 * i)    t.pd()t.pu()t.goto(30, 160)t.pd()t.goto(30, 170)t.pensize(1)#t.pu()t.goto(34, 180)t.pd()t.pencolor("#f1add1")t.begin_fill()for i in range(360):    x = drawx(4, i) + 30    y = drawy(10, i) + 180    t.goto(x, y)t.fillcolor("#f1add1")t.end_fill()# 17t.pu()t.goto(-30, 110)t.pd()t.pencolor("#b1c9e9")t.begin_fill()for i in range(360):    x = drawx(4, i) - 30    y = drawy(1, i) + 110    t.goto(x, y)t.goto(-26, 160)for i in range(540):    x = drawx(4, i) - 30    y = drawy(1, i) + 160    t.goto(x, y)t.goto(-34, 110)t.fillcolor("#b1c9e9")t.end_fill()t.pencolor("white")t.pensize(2)for i in range(1, 6):    t.goto(-26, 110 + 10 * i)    t.pu()    t.goto(-34, 110 + 10 * i)    t.pd()t.pu()t.goto(-30, 160)t.pd()t.goto(-30, 170)t.pensize(1)#t.pu()t.goto(-26, 180)t.pd()t.pencolor("#f1add1")t.begin_fill()for i in range(360):    x = drawx(4, i) - 30    y = drawy(10, i) + 180    t.goto(x, y)t.fillcolor("#f1add1")t.end_fill()# 随机color = ["#e28cb9", "#805a8c", "#eaa989", "#6e90b7", "#b8b68f", "#e174b5", "#cf737c", "#7c8782"]for i in range(80):    t.pu()    x = r.randint(-120, 120)    y = r.randint(-25, 30)    t.goto(x, y)    t.pd()    t.dot(r.randint(2, 5), color[r.randint(0, 7)])for i in range(40):    t.pu()    x = r.randint(-90, 90)    y = r.randint(-35, 10)    t.goto(x, y)    t.pd()    t.dot(r.randint(2, 5), color[r.randint(0, 7)])for i in range(40):    t.pu()    x = r.randint(-80, 80)    y = r.randint(60, 90)    t.goto(x, y)    t.pd()    t.dot(r.randint(2, 5), color[r.randint(0, 7)])for i in range(30):    t.pu()    x = r.randint(-50, 50)    y = r.randint(45, 70)    t.goto(x, y)    t.pd()    t.dot(r.randint(2, 5), color[r.randint(0, 7)])for i in range(50):    t.pu()    x = r.randint(-500, 500)    y = r.randint(120, 300)    t.goto(x, y)    t.pd()    t.dot(r.randint(3, 5), color[r.randint(0, 7)])t.seth(90)t.pu()t.goto(0, 0)t.fd(210)t.left(90)t.fd(170)t.pd()t.write("Happy Birthday", font=("Curlz MT", 50))t.done()    
     
      
 
       
 
      