灯笼代码 使用python3.10.0进行编程

import turtle as t
t.pencolor("yellow")
t.fillcolor("red")
t.pensize(3)
t.begin_fill()
a=1
for i in range(120):
if 0<=i<30 or 60<=i<90:
a=a+0.2
t.lt(3)
t.fd(a)
else:
a=a-0.2
t.lt(3)
t.fd(a)
b=8.65
for i in range(120):
if 0<=i<30 or 60<=i<90:
b=b-0.2
t.lt(3)
t.fd(b)
else:
b=b+0.2
t.lt(3)
t.fd(b)
c=12.45
for i in range(120):
if 0<=i<30 or 60<=i<90:
c=c-0.4
t.lt(3)
t.fd(c)
else:
c=c+0.4
t.lt(3)
t.fd(c)
t.end_fill()
t.penup()
t.fd(2.5)
t.pendown()
for i in range(3):
t.right(90)
t.fd(60)
t.penup()
t.bk(60)
t.left(90)
t.fd(5)
t.pendown()
t.penup()
t.lt(180)
t.fd(20)
t.pendown()
for i in range(3):
t.lt(90)
t.fd(60)
t.penup()
t.bk(60)
t.right(90)
t.fd(5)
t.pendown()
t.penup()
t.bk(17.5)
t.rt(90)
t.fd(185)
t.pendown()
t.fd(50)
t.penup()
t.right(90)
t.fd(2.5)
t.pendown()
t.circle(5,360)
t.penup()
t.pencolor("red")
t.rt(90)
t.fd(350)
t.write("新春快乐",font=("楷体",60,"normal"))
t.penup()
t.pencolor("black")
t.lt(90)
t.fd(100)
t.rt(90)
t.fd(20)
t.write("from fl_maple",font=("楷体",10,"normal"))
t.done()