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()

python turtle画简易的太极图

相关文章:

  • 2021-09-12
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-16
  • 2021-10-07
  • 2021-12-23
  • 2021-12-08
相关资源
相似解决方案