[Mission] 반복문을 통해 별 그리기 turtle 모듈을 이용한다. line은 검은색, fill은 노란색으로 한다. from turtle import * import turtle as t color('black','yellow') n = int(input('별의 꼭짓점 개수를 입력하세요.: ')) t.shape('turtle') begin_fill() for i in range(n): t.forward(100) t.right((360 / n) * 2) t.forward(100) t.left(360 / n) end_fill() mainloop()...
[파이썬실습] 파이썬으로 별 그리기 (예쁘게 색도 칠해볼까?)에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.