jianghongz 发表于 2023-4-19 08:40:08

多彩圆环

import turtle as t
t.speed(10)
color = ["white","white","black","black","blue","blue","red","red","yellow","yellow"]
y = 200
for i in color :
   t.color("black",i)
   t.penup()
   t.goto(0,y)
   t.pendown()
   t.begin_fill()
   t.circle(-y)
   t.end_fill()
   y -= 20

t.ht()
t.done()

故事伊始 发表于 2023-4-19 10:06:06

厉害

hornwong 发表于 2023-4-20 12:02:21

{:5_108:}
页: [1]
查看完整版本: 多彩圆环