使用turtle库画太极图
作者:互联网
from turtle import * pensize(3) penup() pencolor("black") reset() speed(10) pendown() circle(100,180) circle(200,180) circle(100,-180) fillcolor('black') begin_fill() circle(100,180) circle(200,180) circle(100,-180) end_fill() penup() goto(0,100) dot(50) goto(0,-100) pencolor('white') dot(50) hideturtle()
标签:turtle,库画,penup,180,circle,太极图,100,fill 来源: https://www.cnblogs.com/cnn-ljc/p/12497632.html