첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
본 블로그는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 블로그 콘텐츠 향상을 위해 쓰여집니다.

728x90
반응형
728x170
import turtle

turtle1 = turtle.Pen()

turtle1.color(1, 0, 0)

turtle1.begin_fill()
turtle1.forward(100)
turtle1.left(90)
turtle1.forward(20)
turtle1.left(90)
turtle1.forward(20)
turtle1.right(90)
turtle1.forward(20)
turtle1.left(90)
turtle1.forward(60)
turtle1.left(90)
turtle1.forward(20)
turtle1.right(90)
turtle1.forward(20)
turtle1.left(90)
turtle1.forward(20)
turtle1.end_fill()

turtle1.up()
turtle1.forward(10)
turtle1.down()

turtle1.color(0, 0, 0)

turtle1.begin_fill()
turtle1.circle(10)
turtle1.end_fill()

turtle1.setheading(0)
turtle1.up()
turtle1.forward(90)
turtle1.right(90)
turtle1.forward(10)
turtle1.down()
turtle1.setheading(0)

turtle1.begin_fill()
turtle1.circle(10)
turtle1.end_fill()
728x90
반응형
그리드형(광고전용)
Posted by 사용자 icodebroker

댓글을 달아 주세요