3. gradiente ronda

1  importación tortuga
 2 a = int (input ())
 3 turtle.setup (600,400,500,200 )
 4 turtle.pensize (2 )
 5 turtle.color ( " azul " )
 6 turtle.fillcolor ( " amarilla " )
 7  turtle.begin_fill ()
 8  si 3 <= a <= 9 :
 9      
10      turtle.penup ()
 11      turtle.goto (0, -10 )
 12      turtle.pendown ()
 13      turtle.circle (30, pasos = a)
 14  sia == 10 :
 15      turtle.penup ()
 16      turtle.goto (0, -10 )
 17      turtle.pendown ()
 18      turtle.circle (30 )
 19  turtle.end_fill ()
 20  turtle.hideturtle ()
 21 turtle.done ()

 

 

 

 

 

 

 

 

Supongo que te gusta

Origin www.cnblogs.com/yeu4h3uh2/p/12514823.html
Recomendado
Clasificación