1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 6-1 »ç°¢ÇüÀ» ±×¸®´Â ÇÔ¼ö ¸¸µé¾îº¸±â, 153ÂÊ # import turtle t = turtle.Turtle() t.shape("turtle") def square(length): # length´Â ÇѺ¯ÀÇ ±æÀÌ for i in range(4): t.forward(length) t.left(90) square(100) # square() ÇÔ¼ö¸¦ È£ÃâÇÑ´Ù. square(200) # È£Ãâ½Ã ÀÎÀÚ°ªÀ» 100, 200, 300À¸·Î ´Ù¸£°Ô ÇÑ´Ù square(300) turtle.done() | cs |