1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 6-2 n-°¢ÇüÀ» ±×¸®´Â ÇÔ¼ö ¸¸µé¾îº¸±â, 154ÂÊ # import turtle t = turtle.Turtle() # n-°¢ÇüÀ» ±×¸®´Â ÇÔ¼ö¸¦ Á¤ÀÇÇÑ´Ù. def n_polygon(n, length): for i in range(n): t.forward(length) t.left(360 // n) # Á¤¼ö ³ª´°¼ÀÀº //À¸·Î ÇÑ´Ù. for i in range(20): t.left(30) n_polygon(4, 100) turtle.done() | cs |