예제 #1
0
from turtle import *
from ex3 import draw_square

for i in range(30):
    draw_square(i * 5, 'red')
    left(17)
    penup()
    forward(i * 2)
    pendown()

예제 #2
0
import ex3
for i in range(30):
    ex3.draw_square(i * 5, "red")
    left(17)
    penup()
    forward(i * 2)
    pendown()
예제 #3
0
from ex3 import draw_square
from turtle import *
for i in range(30):
    draw_square(i * 5, "red")
    left(17)
    penup()
    forward(i * 2)
    pendown()

mainloop()
예제 #4
0
from turtle import *
from ex3 import draw_square
for i in range(30):
    draw_square(i * 5, 'blue')
    left(17)
    penup()
    forward(i * 2)
    pendown()