baker95935

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
import turtle as t

 
t.speed(10)
t.pencolor("yellow")
t.fillcolor("red")
for num in range(1,6):
    for i in range(1,5):
        t.forward(200)
        t.right(144)

    t.forward(200)
    t.goto(num*50,num*50)
 


t.penup()
t.goto(-100,-200)
 
t.color('green','red')
for j in range(1,5):
    t.begin_fill()
    t.circle(50)
    t.end_fill()
    t.goto(j*50,j*50)

t.done()

画的不是很帅气,随便看着吧

posted on 2018-01-05 16:53  baker95935  阅读(430)  评论(0编辑  收藏  举报