python 3 turtle 질문

python 3 turtle 질문

QA

python 3 turtle 질문

답변 1

본문

이 문제 답좀 알려주세요 ㅠㅠ

# 7) Use the turtle module and the example slide of code from lecture 6 to make a grid of circles.

# Modify the code so that instead of making a square grid, it makes a triangle shaped grid. See the assignment page for

# an example result. This can be done with only a small change to the nested loops - find that small change way

# to solve this.

example slide:

import turtle

window = turtle.Screen()

worker = turtle.Turtle()

worker.speed(0)#Go fast

 

for x in range(-200,200,50):

   for y in range(-200,200,50):

       worker.penup()

       worker.setposition(x,y)

       worker.pendown()

       worker.circle(20)

 

 window.exitonclick()

32350545_1601356395.5765.png

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 38
© SIRSOFT
현재 페이지 제일 처음으로