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

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

python3.6的turtle库练手

相关文章:

  • 2022-12-23
  • 2021-05-19
  • 2021-10-08
  • 2021-06-23
  • 2022-12-23
  • 2021-05-19
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-09-11
  • 2021-05-18
  • 2021-12-30
相关资源
相似解决方案