from turtle import*
Screen().setup(width=500, height=450, startx=400, starty=200)
penup()
seth(180)
goto(0, -200)
pendown()
begin_fill()
fillcolor('black')
circle(-200, extent=180)
circle(-100, extent=180)
circle(100, extent=180)
end_fill()
circle(200, extent=180)
penup()
goto(0, 150)
pendown()
begin_fill()
fillcolor("white")
circle(30,extent=360)
end_fill()
penup()
goto(0,-100)
pendown()
begin_fill()
fillcolor("black")
circle(30, extent=360)
end_fill()
done()
Python的turtle库画太极图
最新推荐文章于 2024-03-04 10:19:48 发布