python3.6的turtle库练手

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()

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

原文地址:https://www.cnblogs.com/baker95935/p/8205541.html