太极

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.5*rand1,180)
turtle.end_fill()
turtle.pencolor('white')
turtle.goto(0,rand1)
turtle.pencolor("black")
turtle.goto(0,0)
turtle.fillcolor("black")
turtle.pencolor("black")
turtle.begin_fill()
turtle.circle(-0.5*rand1,180)
turtle.end_fill()
turtle.pencolor("white")
turtle.goto(0,1.25*rand1)
turtle.pencolor("black")
turtle.fillcolor("black")
turtle.begin_fill()
turtle.circle(0.25*rand1)
turtle.end_fill()
turtle.pencolor("white")
turtle.goto(0,rand1)
turtle.pencolor("black")
turtle.goto(0,0.25*rand1)
turtle.fillcolor("white")
turtle.begin_fill()
turtle.circle(0.25*rand1)
turtle.end_fill()
time.sleep(1)

 

posted on 2018-03-28 20:20  hbuzhangshuning  阅读(107)  评论(0编辑  收藏  举报

导航