Home > other >  How do I use turtle draw a diagram
How do I use turtle draw a diagram

Time:10-10

Code of gratitude,

CodePudding user response:

   for help ah, up, up, up, up, bosses look over

CodePudding user response:

CodePudding user response:

This, in python implementation

CodePudding user response:

Probably is that
 
The import turtle
S=5
C=[' red 'and' purple ', 'green', 'yellow' and 'blue']
Y=0
Turtle. Bgcolor (' black ')
While True:
For I in range (0, 12) :
Turtle. Pencolor (c [y])
Turtle. Forward (s)
Turtle. Left (30)
S +=1
Y +=1
If y==5:
Y=0
  • Related