画太极图
import turtle import time import random rand1=random.randint(1,200) turtle.fillcolor("black") turtle.begin_fill() turtle.circle(rand1,180) turtle.end_fill () turtle.pencolor("white") turtle.goto(0,0) turtle.pencolor("black") turtle.circle(-rand1,180) turtle.pencolor("white") turtle.goto(0,rand1) turtle.pencolor("black") turtle.fillcolor("white") turtle.begin_fill() turtle.circle(0.25*rand1)