hhct
import turtle
t=turtle.Turtle()
t.penup()
t.goto(0,-50)#设置起始坐标
t.pendown()
t.begin_fill()
t.fillcolor(\'black\')
t.circle(150,extent=180)
t.circle(75,extent=180)#半径正负代表逆时针和顺时针画
t.circle(-75,extent=180)
t.end_fill()
t.circle(-150,extent=180)
t.penup()
t.goto(0,160)
t.pendown()
t.begin_fill()
t.fillcolor("white")
t.circle(30,extent=360)
t.end_fill()
t.penup()
t.goto(0,0)
t.pendown()
t.begin_fill()
t.fillcolor("black")
t.circle(30,extent=360)
t.end_fill()
turtle.done()

  

分类:

技术点:

相关文章:

  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-09-15
  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案