import turtle
t = turtle # 给turtle取别名
t.pensize(2) # 设置画笔粗细
t.hideturtle() # 隐藏 turtle
t.colormode(255) # 切换RGB色彩模式
t.color((0, 0, 0), "Green") # 设置画笔颜色和填充颜色
t.setup(500, 500) # 设置主窗体的大小和位置
t.speed(5) # 定义绘图的速度
t.penup() # 抬起笔
t.goto(0, -100) # 设置海龟绝对坐标
t.pendown() # 落下笔
t.circle(100) # 绘制100像素的圆
t.penup() # 抬起笔
t.goto(-20, 35) # 设置海龟绝对坐标
t.pendown() # 落下笔
t.begin_fill() # 准备填充形状
t.forward(40) # 向前移动40像素
t.seth(-60) # 海龟转向-60
t.forward(40) # 向前移动40像素
t.seth(-120) # 设置窗体的位置和大小
t.forward(40) # 向前移动40像素
t.seth(-180) # 海龟转向-180
t.forward(40) # 向前移动40像素
t.seth(120) # 海龟转向120
t.forward(40) # 向前移动40像素
t.seth(60) # 海龟转向60
t.forward(40) # 向前移动40像素
t.end_fill() # 填充完成
t.seth(120)
t.color((0, 0, 0), (29, 184, 130))
for i in range(6):
t.begin_fill()