1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 5-3 N-°¢Çü ±×¸®±â, 124ÂÊ # import turtle t = turtle.Turtle() t.shape("turtle") s = turtle.textinput("", "¸î°¢ÇüÀ» ¿øÇϽóª¿ä?:") n = int(s) width = turtle.textinput("", "ÇÑ º¯ÀÇ ±æÀÌ´Â ¾ó¸¶Àΰ¡¿ä?:") w = int(width) for i in range(n): t.forward(w) t.left(360/n) turtle.done() | cs |