一、导入turtle库,并设置画笔速度
import turtle as t
t.speed(1)
二、画出大概
#画出大概
t.fillcolor("black")
t.begin_fill()
t.circle(-100,180)
t.circle(-50,180)
t.circle(50,180)
t.end_fill()
t.circle(100,180)
t.right(-90)
t.forward(50)
三、画点
#画点
t.dot(22,'white')
t.penup()
t.forward(100)
t.pendown()
t.dot(22,'black')
四、写字并隐藏画笔
#写字
t.penup()
t.forward(100)
t.pendown()
t.write('太极图',align='center',font=('楷体',50,'italic','underline','bold'))
t.ht()
t.done()
五、运行效果