turtle 代码
import turtle
turtle.pensize(1)
turtle.pencolor('red')
turtle.fillcolor('red')
turtle.speed(5)
turtle.penup()
turtle.goto(-30, 100)
turtle.pendown()
turtle.begin_fill()
turtle.left(90)
turtle.circle(120,180)
turtle.circle(360,70)
turtle.left(38)
turtle.circle(360,70)
turtle.circle(120,180)
turtle.end_fill()
turtle.penup()
turtle.goto(-100,-100)
turtle.pendown()
turtle.pencolor('red')
turtle.fillcolor('red')
turtle.speed(5)
turtle.penup()
turtle.goto(-30, 100)
turtle.pendown()
turtle.begin_fill()
turtle.left(90)
turtle.circle(120,180)
turtle.circle(360,70)
turtle.left(38)
turtle.circle(360,70)
turtle.circle(120,180)
turtle.end_fill()
turtle.penup()
turtle.goto(-100,-100)
turtle.pendown()
截图
来源:https://www.cnblogs.com/ainimiao/p/12556087.html