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 太极图唯一正确的画法_ci