python 3 turtle 질문

python 3 turtle 질문

QA

python 3 turtle 질문

본문

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

# 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

답변을 작성하시기 전에 로그인 해주세요.
전체 88
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT